ws: Don't rely on Fedora specific make-dummy-cert script

The script was non-portable, not-flexible, and caused problems
with SELinux.

Fixes #205
Closes #655
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
tools: Don't fail TAP tests due to EAGAIN

It seems that in certain situations the stdout or stderr passed to
tap-driver returns EAGAIN on write(). So handle that by waiting
and trying again.

Closes #654
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Fix race condition during ssh transport shutdown

Without this change on certain machines, in certain environments
we would see messages like the following:

cockpit-protocol-Message: 127.0.0.1: failed to process channel: Socket error: Success

Closes #657
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
selinux: Allow accepting connections on sockets passed from systemd

Closes #659
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: New cockpit.location() object for navigating

This will prevent navigation if methods on the resulting object
are called after the user has already navigated.

Signed-off-by: Stef Walter <stefw@redhat.com>
 - Renamed to location and Location
 - Make .navcount an implementation detail, don't expose
web: Use a Location to go up after container operations

Fixes #369.
Closes #638

Signed-off-by: Stef Walter <stefw@redhat.com>
 - Renamed page_navigator to location