ws: Don't redirect to TLS when accessing as localhost

Allow localhost to access over pure HTTP. This makes demoing and
testing cockpit easier.

Closes #400

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
Add dependency on libxslt

There was a build regression due to the removal of
BuildRequires: gtk-doc
in bd902d3a5f5f503a8b343f8cb946754b081fc734 which was implicitly
pulling in libxslt.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Closes #407
daemon: Zero unlimited memory limits in CGroupMonitor

When memory cgroups have no limit, they set to G_MAXSIZE of the number
of bits of the platform. This is much easier to detect in C code than
in javascript, so set these to zero (ie: no memory limit) in
CGroupMonitor.

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
daemon: Add tracking of CPU shares into CGroupMonitor

This lets us see changes in this setting.

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
web: Load default Memory, CPU, TTY settings from image config

Closes #379

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
web: Refactor sliders into MemorySlider and CpuSlider objects

We want to use these sliders in multiple places. make them real
objects, albeit private to the docker code.

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
web: Read Docker container memory limit from CGroupMonitor

It could have changed since the container was launched, so don't
use the container config. We want to be able to react to changes
in the system appropriately.

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
web: Pull docker formatting of CPU and memory into util funcs

Once we start displaying this on the details page we need to
have this be cleaner.

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
 * Although didn't apply one comment
web: Implement changing docker resources while cgroup running

Implement a rudimentary way of changing the memory limit and CPU
priority while the cgroup is running.

Closes #405
Fixes #402

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
 * Although didn't split out some minor code
web: Set minimum scales for graph row bars on containers pages

These prevent things like 4 MiB from taking up the whole width
of the column.

Fixes #393

Reviewed-by: Marius Vollmer <mvollmer@redhat.com>
web: Shorten container image names

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Prevent wrapping in the memory and image textual size col

So that "XXX MiB / XXX MiB" fits.

Signed-off-by: Stef Walter <stefw@redhat.com>
 * Used white-space nowrap instead.
web: Reduce range of memory slider somewhat

Makes it easier to select small amounts, and if you're limiting memory
then it makes sense to be smaller.

Signed-off-by: Stef Walter <stefw@redhat.com>
 * Fixed conflicts, 2 GiB instead of 1 GiB
web: Don't jump when throbber appears in place of buttons.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Use uniform color for container graph grids.

Reviewed-by: Stef Walter <stefw@redhat.com>
controls: Round up bar graph max to multiple of 100 MiB.

This prevents the graphs from jumping around too much.

Reviewed-by: Stef Walter <stefw@redhat.com>
No need for this to be a .in file

Fixes #408

Reviewed-by: Stef Walter <stew@redhat.com>
Fix a copy-paste error

Reviewed-by: Stef Walter <stew@redhat.com>
Revert "web: Shorten container image names"

This won't make much senes for the broader audience. Might make
sense during demos and such.

This reverts commit d205abdd0e57be3b41811b337d3f4e5820293449.

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
web: A basic container commit to image dialog

This doesn't have validation yet, and doesn't support all options
but enough to show the concept and get started.

Closes #409

Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>