web: Replace 'first_visit' argument with 'setup' method.

To make it clearer that 'setup' is about static
modifications/additions to the DOM, while 'enter' is about filling the
page according to the URL parameters.

A lot of code has been moved, but it has not been changed.

Closes #518
Review-by: Stef Walter <stefw@redhat.com>
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
doc: Fix the 'make render-images' target

Closes #527
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Use port 1001 by default to connect to cockpit-ws

Port 1001 is so much easier to type and remember. It's unassigned and
below 1024.

Closes #526
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
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
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Fix some warnings, leaks, found by cppcheck

Closes #525
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Directly talk to NetworkManager.
daemon: Remove networking API.