daemon: Add some basic tests for CGroupMonitor

Closes #318

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Display 'play' buttons next to images to run a container

These buttons don't do anything yet.

Got the column smaller by setting a fixed width on td.cell-buttons.
Not completetly happy with that, but perhaps there's not a better way.

Work on issue #301

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Run images from the docker overview page

Bring up the run dialog by pressing the play button.

We no longer need to refresh the image information, as we have relevant
information being updated by the docker DOM code.

Work on fix for issue #301

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Implement DockerClient.start() .stop() .restart()

Since we want to be able to call these from the overview page
in addition to the details page.

Part of issue #301

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Start and stop containers with buttons on the overview page

Part of fix for issue #301

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Add a div.slider control

This will be used for allocating memory and CPU limits.

See src/web/STYLE.html for an example, or src/web/controls.js
for a bit of documentation on how to use it.

Slider can be disabled with .disabled or disabled='true' as
well and the value accessed with .value or value='xxx'

Work towards fixing issue #295
Closes #322
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Rename test-channel.html to test-chan.html

The way automake testing works is that each test generates a log file
with the same filename as the extension and .log. So multiple tests
with different extensions but the same name will generate the same
log file, and only one will be run.

Renaming test-channel.html allows it to run again.

Closes #323
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
daemon: Make cgroupmonitor compatible with old monitors.

This way we can use it directly with cockpit-plot.js.

This has been done by changing the GetSamples method to return data
using the same layout as NewSample, and adding back the useless
@options argument.

Signed-off-by: Stef Walter <stefw@redhat.com>
 * Updated test-cgroupmonitor for changes
Fix ignore by adding some more generated things.

Closes #334

Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Keep cgroup consumers until they have no data.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Remove bar graph flicker by not recreating them

Don't recreate entire rows and cells and contents in the containers
and images tables. Just update the contents if a row already exists
for the container.

This allows us to simply update value="x/y" for the bar row div
rather than replacing it and causing animations all over the place.

Also simpler.

Fixes #320
Closes #331