myria-web: report concise runtimes where appropriate

E.g., in infoboxes about operators, in the network view, etc.

The only place we need detailed times is in the gantt charts and x-axes.
networkvis.js: UI fixes for sender

1. The average number of tuples can be different on the source and
   destination sides, when different numbers of nodes are involved. We
   were using the destination average as the source average. Fixes the
   second half of #135.

2. The average line was a little bit short on the source side, because
   its height was set by the matrix width not the matrix height. Fix this.
editor: fall back to relational plan visualizer

We cannot yet visualize the physical plans that include Sequence or
DoWhile operators using the new hotness. For these queries, we can only
show the relational plan using the old coldness.

Catch errors visualizing physical plans in the general case, and when
they occur hide the physical plan and show the relational plan.

Vice versa -- when parsing a new query and hence visualizing a new plan,
if the visualizer succeeds then hide the relational plan and show the
physical plan.
editor: rerender after collapsing/decollapsing tabs

So the physical plan comes out the right size
editor: update query results tab

1. Display all the results in a table instead of a pre.
2. Show times using the cool abbr.timeago as shown in datasets and queries tabs
3. If the query is profiled, add a link to the data once the query succeeds.
4. If the query fails, add a pre with the error message once the query fails.
Merge pull request #145 from uwescience/network-viz-fixes

Network viz fixes
editor: make elements divs instead of ps

Also refactor the pre creation for errors. I think that method doesn't work.
queries: syntax highlight MyriaL

Use CodeMirror's runMode function to add syntax highlighting to
MyriaL queries.
Merge branch 'master' into editor-query-view-improvements
editor.js: move templates to global templates var
Merge pull request #149 from uwescience/editor-query-view-improvements

Editor query view improvements
Merge branch 'master' into syntax-highlighting-on-queries-page
editor: s/templates/editor_templates/

common name used in queryviz.js and editor.js, and sometimes both are loaded.
Merge pull request #150 from uwescience/syntax-highlighting-on-queries-page

Syntax highlighting on queries page
Merge branch 'master' into compile_to_multiway_join_option

Conflicts:
	appengine/js/editor.js