agent: Fix CockpitDBusJson init/dispose race

Closes #834
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Factor out memory info retrieval from cockpit-docker

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Include number of CPUs in machine info

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Add plot.set_yaxis_max

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Scale graph axis according to available CPU and memory resources

But not the big memory graph: It includes swap and the physical memory
limit is thus not appropriate for it.

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Add setup_hook to plot options

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Limit network graph maximum to a resonable minimum

So that we don't show network trickle as if something interesting
would happen.

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Rename cockpit_setup_cgroups_plot to cockpit_setup_multi_plot

It is not only used for cgroups anymore.

Closes #845
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Use consistent ticks for CPU graphs

Reviewed-by: Stef Walter <stefw@redhat.com>
common: Make sure to get all data out of CockpitPipe

When a process exited before all its data had been received,
we would accidentally lose the last bit of data. Wait until the output
has closed before closing the pipe.

Closes #849
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Add CockpitWebResponse:done signal

Fires when the web response is done outputting the response to
the IO stream and is ready to go away.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Implement support for HTTP keep alives

This makes us much faster, especially when loading over high
latency links or using SSL.

We make it the responsibility of CockpitWebServer to close the
connections, and we check for further requests on a connection.

CockpitWebResponse indicates whether it thinks a given connection
will be reusable after it has sent a response on it.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
agent: Changed the exit-signal from numeric to textual

Since the numeric value of various signals differs between,
architectures, send a textual signal identifier in the "exit-signal"
field when a spawned process exits with a signal.

Fixes #777
Closes #848
Signed-off-by: Stef Walter <stefw@redhat.com>
 * Updated copyright header
shell: Displays user account password mismatch message

When a types in his password twice to confirm it is the desired password
an error message is now displayed under the text box. The text box
itself is now highlighted to further show this error.

Fixes #739
Signed-off-by: Stef Walter <stefw@redhat.com>
 * Fixed whitespace issues
shell: improved usability when confirming password

Highlights both text boxes to clearly indicate either of the boxes could
hold the wrong password. Gives small delay while you type  before
indicating the passwords do not match. If the first password does not
start with the characters a user has started to type it will show they
are different without a delay.

Fixes #739
Closes #809
Signed-off-by: Stef Walter <stefw@redhat.com>
 * Cleaned up white space
Release version 0.15
shell: globally stylizes patternfly dropdown menus

initializes patternfly dropdown menus globally, removes local
instantiations, and adds patternfly style to realm dropdown

Fixes #776
Closes #854
Reviewed-by: Stef Walter <stefw@redhat.com>
web: Displayed the host name when loading the login screen.

Fixes #759
Closes #873
Signed-off-by: Stef Walter <stefw@redhat.com>
 * Consistent use the property syntax for accessing .hostname
doc: Fix indentation in modules.md
shell: Replaced "hostname" with "host name" in the UI.

Replaced all visual "hostname" with "host name".
To keep consistent, also changed "Terminate session" to "Terminate Session".

Fixes #859
Closes #874
Reviewed-by: Stef Walter <stefw@redhat.com>