UI: Reduce queries and move height computation to the frontend

This CL:
- Reduces the number of queries when loading a chrome trace, by
  collapsing everything into a joined query.
- Moves the height computation fully to the frontend. The controller
  now provides only the maxDepth, the height computation is delegated
  to the panels, and in turn to the tracks.

Change-Id: Ib3e8cc0699da9e6fb17c4e85fb6c5049756f03a7
diff --git a/ui/src/common/state.ts b/ui/src/common/state.ts
index d1bc992..129ff4b 100644
--- a/ui/src/common/state.ts
+++ b/ui/src/common/state.ts
@@ -22,7 +22,7 @@
 export interface TrackState {
   id: string;
   engineId: string;
-  height: number;
+  maxDepth: number;
   kind: string;
   name: string;
   // TODO: These need to be nested into track kind spesific state.