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>
shell: Removed the Search Bar on the corner

Removed related files and resources.

Fixes #857
Closes #876
Reviewed-by: Stef Walter <stefw@redhat.com>
agent: Add channel with 'null' payload type

This channel doesn't send anything and drops all data it receives.
It is analogous to /dev/null

Reviewed-By: Patrick Uiterwijk <puiterwijk@redhat.com>
ws: Add 'logout' command, processed by cockpit-ws

The logout command tells the web service to discard credentials
and optionally disconnect the user.

Reviewed-By: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Add Channel.transport.logout() method

This sends the "logout" command to cockpit-ws.

Reviewed-By: Patrick Uiterwijk <puiterwijk@redhat.com>
shell: Use the logout command to logout and deauthorize

Reviewed-By: Patrick Uiterwijk <puiterwijk@redhat.com>
ws: Remove the old /logout and /deauthorize handlers

This includes the CockpitAuth handling of the logout message.

Note that the Cockpit cookie remains in the browser. But this isn't
a big deal and is the same result if the user just closes the browser.

Fixes #541

Reviewed-By: Patrick Uiterwijk <puiterwijk@redhat.com>
websocket: Don't complain if hixie76 client doesn't close

It seems some hixie76 WebSocket clients just expect the server
to close, so don't complain when that happens.

Reviewed-By: Patrick Uiterwijk <puiterwijk@redhat.com>
websocket: Fix some misspellings as the hixie76

Closes #865
Reviewed-By: Patrick Uiterwijk <puiterwijk@redhat.com>
agent: Fix some issues reading DBus address from dbus-daemon

Trying to fix the isuse we see every once in a while:

cockpit-agent[20020]: The given address is empty

Closes #866
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
remotectl: Add a new process tool

With an empty certificate command for now

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