base: File API

Closes #1546
Signed-off-by: Stef Walter <stefw@redhat.com>
 * Fixed indentation
 * Fixed use of constructor without new
base: Debug output fixes for cockpit.http()

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
bridge: Fix issue with header values that contain spaces

The CockpitHttpStream code refused header values that contain spaces.

Closes #1568
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Don't load jquery-flot.js twice

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Use CSS to display and hide buttons in Dashboard

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Cleanup some of the ugly inline styles and other CSS on dashboard

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Dashboard servers not links while editable

The various dashboard servers are not links while in edit mode

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Cleanup rats nest of callbacks for dashboard hosts

We should be separating logic from presentation at least a bit.
Use data- attributes and delegated callbacks to accomplish this

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: We never 'leave' the dashboard page, just hide it

Most of the legacy PageXxxx stuff is deprecated anyway, but going
forward we know one thing, we never really .leave() the dashboard
it is always being updated and a constant part of the shell.

Closes #1565
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Fix dashboard plot highlighting

 * There is no "series-plot" data attribute, so find the series
   belonging to an item via the address.

 * Only move the plot to the front when turning the highlight on, not
   when turning it off.

Closes #1572
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Remove sidebar styling, since we don't have a sidebar anymore

Closes #1573
Reviewed-by: Stef Walter <stefw@redhat.com>
base: Distribute mustache and bring it into base package

This is a simple templating library that fits quite well with jQuery
and our method of operation. We don't currently do incremental DOM
updates, but that will come in a later iteration.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
 * Added license text
shell: Use Mustache to render the Servers on the dashboard

Note that we can't use .data() with data-* attributes as these
may change underneath jQuery.

Closes #1566
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
 * Adapt tests
shell: Color the left side of Server list on dashboard rather than box

Put a color band on the left side of the servers instead of a box
around the icon. This looks better.

Closes #1571
shell: Make real dashboard server links

This makes us able to open them in new tabs, or new windows, middle
click them, drag them etc.

Closes #1575
base: Add jQuery amends plugin which smoothly amends HTML

This is a version of $("...").html() which syncs over the HTML
and avoids needlessly replacing nodes or elements.
WIP Documentation on Hosts and Things
WIP Hosts and things in kubernetes

FIXUP kubernetes
Test html for loading hosts and minions
WIP machined