ws: Rearrange libssh logging during tests to diagnose travis

Diagnose new test races by rearranging the SSH detailed logging.

Closes #774
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
common: Rename cockpit/ subdirectory to common/

For new contributors it's confusing to have a directory
named 'cockpit'.

And clean up the last vestiges of libcockpit being an installable
library.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
common: Rename libcockpit.a to libcockpit-common.a

Just to make things clearer

Closes #786
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Fix the debugging manifest.json for removed network js

Otherwise we get 404's when people link the shell module into
their home directory for quick development.

Closes #804
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Add a firewalld service for cockpit-ws

This allows people to easily open the cockpit port in their
zones with commands like:

 # firewall-cmd --add-service=cockpit --permanent

It also provides the basis for getting this enabled in Fedora Server
by default.

Closes #806
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Release version 0.13

 * And fix a make distcheck issue
shell: fixes RAID Array styling issue

removes border and changes margins to align properly

Fixes: #685
Closes #734
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Signed-Off-by: Marius Vollmer <marius.vollmer@redhat.com>
* Use "top" class to get top alignment.
ws: Don't force requests to /ping to use TLS

This is just for checking if cockpit is available on a server
and shouldn't require TLS. We should never include any further
information in the response.

See discusison at #743

Closes #808
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
test: Fix check-services.

This got broken by "web: Add "My Services" and related commits.

Closes #815
Reviewed-by: Stef Walter <stefw@redhat.com>
agent: Lock down the executable that cockpit-session runs

cockpit-session runs in a different security context (at least
SELinux) than cockpit-ws. So don't trust cockpit-ws to tell us
which agent to run.

Fixes #607
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
agent: Don't start a session without authentication

Currently the only form of authentication is password based,
but in the future we'll pass gssapi kerberos input to
cockpit-session for authentication.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
agent: Use cockpit-agent instead of test-agent

Remove the unnecessary test-agent program, and just use
cockpit-agent during tests.

Closes #807
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: "Logout" -> "Terminate session" on account page.

"Logout" is used for the currently logged in user.

Fixes #76
Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Allow password changing for root.

By optionally calling passwd directly instead of going via
AccountsService.

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Explicitly allow "root" to do everything.

Previously, "root" was implicitly (and accidentally) handled as part
of the "When in doubt, just go ahead and let it fail later" fallback.

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Replace "Account Settings" with "Change Password" for root.

Since we can't show the account page for root.

Closes #805
Reviewed-by: Stef Walter <stefw@redhat.com>
ws: Add support for Chunked Transfer Encoding.

supported for chunked transfer encoding and added/updated related test cases.
fixed some typos and a potential bug.
format adjustments.

Fixes #649