ws: Fix race while closing in CockpitSshTransport

The exit-signal or exit-status SSH packets often race with the
close channel packets. We need to wait for them. Add a timeout
during which we wait for exit-signal or exit-status after both
the incoming and outgoing close packets have been received.

Caught by Valgrind and Travis CI

Closes #520
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Signed-off-by: Marius Vollmer <marius.vollmer@redhat.com>
* Moved a comment
Send notifications to #cockpit when travis builds

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Use right printf format for limiting string length

Closes #524
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Release DockerClients.

Also, don't assume that DBusClients are ready when we get them.

Closes #514
common: Use simpler parsing in cockpit_transport_parse_command()

Just parse the command directly as an object from the payload
bytes. Fixes a bug where we freed a JSON node we shouldn't have.

Closes #521