port(Turborepo): various graph formats (#6490)
### Description
- render task graph to mermaid, html, or call to `dot`
- fix root task calculation, base it off of `is_all_packages` from scope
resolution
- minor tweak to Go graphing code to mirror the newline for mermaid that
the rest of the formats have
### Testing Instructions
Added some graphing tests
Closes TURBO-1574
Closes TURBO-1698
---------
Co-authored-by: Greg Soltis <Greg Soltis>
Co-authored-by: Chris Olszewski <Chris Olszewski>
Co-authored-by: Chris Olszewski <chris.olszewski@vercel.com>