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>
agent: It's "object-paths", not "paths" for the fake object manager.

Closes #710
Reviewed-by: Stef Walter <stefw@redhat.com>
web: adds spacing between accounts

Fixes #671
Closes #713
Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Fixed formatting string

Limit the length of the sscanf field to prevent being attacked.

".*" conversion rule is not available in scanf/sscanf/fscanf series functions,
the only way to do this is using explicit number to limit the length of the field.

Fixes #665
Closes #706
Reviewed-by: Stef Walter <stefw@redhat.com>
web: Don't move the controls if login fails

Fixes #672
Closes #707
Reviewed-by: Stef Walter <stefw@redhat.com>
web: fixes dropdown menu size and adds caret

Fixes #680
Closes #714
Reviewed-by: Stef Walter <stefw@redhat.com>
web: Removes unneeded and unused variable

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Changed indentation to match overall style

Reviewed-by: Stef Walter <stefw@redhat.com>
web: makes selecting accounts more intiutive

Highlights the account being hovered over and changes the cursor to a
pointer

Fixes #711
Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Try and fix race unreferencing object in machines tests

Closes #678
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Better debug logging when removing a channel from session

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
agent: Split out MockTransport into its own file

And move some tests to start using it.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
common: Add cockpit_assert_bytes_eq() and cockpit_assert_data_eq()

These functions are used in tests to check if memory matches expected
and gives informative output if it doesn't match. This output could
be further enhanced to show a diff or some such, but for now it's just
a simple escaped listing.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
agent: Add cockpit_channel_close_obj_option() function

This allows adding full JSON objects to channel close messages.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>