web: Fully disconnect from monitor when closing Docker client

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Closes #623
web: Use tighter regexp to find container cgroups.

Otherwise we might pick up cgroups like
var-lib-docker-devicemapper-mnt-5cc43057ad4d45b2a1f01a7db64556c912526318eb365d3203535cc0fefc4c9c.mount.
This might cause handle_new_samples to store the wrong numbers in the
container data structure.

The sympton was that the resource graphs would work as expected but
the container rows would always show 0% CPU and "?" for the memory.

More tuning for the regexp might be needed, and ideally Docker should
tell us the cgroup of a container.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Closes #624
web: Fix title of #server page

By getting the 'machine' parameters actually from the 'server' part of
the URL, and not the current page.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Closes #625
web: Handle task-less machine setup.

We can't skip the 'action' tab anymore when there are no tasks since
actually adding the machine happens during that step now.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Closes #626
test: Use 'payload' instead of 'protocol' in ph_dbus_ready.

So that we wait for the right client to be ready.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Closes #629
web: Fix visibility on Docker images page

Previously all buttons on that page would be shown/hidden when the
image 'waiting' status changed not just the buttons for the image
itself.  That used to be OK, but now we also have buttons for
containers which should not be affected.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Closes #627
build: Add basic flags for address santizer

To use:
    ./autogen.sh --enable-asan=yes

(Currently don't have check for gcc > 4.8).

Closes #637
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
build: Disable parallel make for SELinux

The makefile provided by selinux-policy-devel is not compatible
with parallel make invocation.

Closes #647
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Get upper limit from /proc/meminfo for container resource sliders

Fixes #390
Closes #636

Signed-off-by: Stef Walter <stefw@redhat.com>
 - Rebased and fixed conflict
cockpit: Make ECONNREFUSED also mean "not-found".

We get this error for example when docker is not running, and
previously we showed it as "internal-error".

Closes #639

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Factor out the DBusClient and DockerClient object caches.

We will use pattern also for the upcoming NetworkManager code.

Closes #628