ws: Fix issue where remote channel is closed when sending data

Should fix errors like this:

couldn't write: Remote channel is closed

Closes #664
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Release version 0.10
agent: Don't reset environment when not starting a session.

This makes debugging easier since otherwise cockpit-agent would always
start a new session bus.

Closes #682

Signed-off-by: Stef Walter <stefw@redhat.com>
 - Removed unnecessary static initialization
ws: Add precondition to cockpit_web_service_get_creds()

Fixes #669
Closes #688

Reviewed-by: Stef Walter <stefw@redhat.com>
ws: Removed unused object variable and code related to it

Fixes #670
Closes #690

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Close other dialogs before opening "Disconnected".

We can't have two dialogs open at the same time, and "Disconnected" is
opened asynchronously.

For convenience and robustness, we also close other dialogs before
opening the #error-popup although the code is usually careful to close
any open dialog before showing errors.

Closes #684
Fixes #667

Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Use G_SPAWN_STDOUT_TO_DEV_NULL as required.

The g_spawn_sync documentation says:

    Note that you must set the G_SPAWN_STDOUT_TO_DEV_NULL and
    G_SPAWN_STDERR_TO_DEV_NULL flags when passing NULL for
    standard_output and standard_error.

And indeed, without this, "shutdown" gets a EPIPE when writing to
stdout, which is a harmless but distracting error.

Closes #683

Reviewed-by: Stef Walter <stefw@redhat.com>
doc: Fix typo in embedding documetnation

Closes #679

Reviewed-by: Stef Walter <stefw@redhat.com>
Have git ignore some SELinux built files
daemon: Replace snprintf() with g_strdup_printf() in journal code

To avoid holding formatting strings in stack buffers

Fixes #666
Closes #693

Reviewed-by: Stef Walter <stefw@redhat.com>
ws: Freed memory leak of cockpit_getpwnam_a()

Fixed #668
Closes #692

Reviewed-by: Stef Walter <stefw@redhat.com>
ws: Wait for child process to exit in mock-sshd

Hopefully this will fix races where we don't get terminate signals
or exit codes correctly during our tests.

Closes #694
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Make whole row clickable on dashboard.

And consequently remove the "Manage" action from dropdown.

Closes #651
Reviewed-by: Stef Walter <stefw@redhat.com>
ws: Simplify SSH terminate process test

Trying to solve some CI issues in this test

Closes #691
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Handle 'Connection reset by peer' ssh message

Unfortunately we have to "screen scrape" to figure out the reason
for SSH errors. So add one more message here.

Closes #695
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Container action buttons now in panel-heading

Fixes #648

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Refactors layout by moving inline styles to external stylesheet

Fixes #648
Reviewed-by: Stef Walter <stefw@redhat.com>
web: Fixes formatting of the terminal to line up with panel buttons

Fixes #648
Reviewed-by: Stef Walter <stefw@redhat.com>
web: Fixes margins of Image label and buttons

Fixes #675
Reviewed-by: Stef Walter <stefw@redhat.com>
web: Fixed the html indentation

Reviewed-by: Stef Walter <stefw@redhat.com>