daemon: Remove unused function in cgroup code

This seemed to start causing problems with Travis CI.

Closes #511
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Put cockpit-main into $cockpit scope.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Move initial login attempt to login.js.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Remove obsolete jqmismin from cockpit-dashboard.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Make DBusClient useable also when it's not ready.

By adding DBusClient.prototype.get and emitting change notification
signals during the initial seeding.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Add plot.destroy method.

To completely clean up before replacing a plot with another.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Allow creation of plots on non-ready resource monitors.

The plot will wait until the needed properties of the resource monitor
have useful values.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Support for reusing D-Bus clients.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Tell pages when they appear in the breadcrumb.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Remove cockpit_dbus_client.

Instead, each page gets the clients it wants.  The pages have been
fixed to survive with a client that is not yet ready, but they might
not do that in the prettiest way possible.

When the connection is lost spontaneously, the UI does nothing special
now.  It mostly freezes and button clicks result in immediate errors.
This will be improved in a later commit.

Reviewed-by: Stef Walter <stefw@redhat.com>
tests: Remove a race in initial setup.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Remove app-lifecycle funcs from $cockpit API.

They don't belong there.

Reviewed-by: Stef Walter <stefw@redhat.com>
ws: Create CockpitCreds closer to pam_authenticate()

Create the PAM creds closer to pam_authenticate(), so we can use
the real user that PAM canonicalized, as well as return additional
information into the creds (later).

Remove the noop authorization check. We want to be respecting
system authorization, not inventing our own.
ws: Remove the cockpit_creds_take_password() function

It's not used, and not useful going forward.
ws: CockpitCreds with multi creds, remote host is a cred

As part of the build up to GSSAPI kerberos support we need to be
able to hold mulitple credentials in the aptly named CockpitCreds.

Move remote host credential to CockpitCreds. This is necessary
because we want to authenticate in cockpit-session and perform
that authentication from CockpitAuth
agent: Drop group privileges in cockpit-session

Correctly drop group privileges in cockpit session.

Fix #492
agent: Use err() and warn() in cockpit-session

Since cockpit-session is written without GLib, we can't use the
standard GLib logging, but we can use these stdlib functions for
handling printing our errors.
agent: Some minor cleanup in cockpit-session

Move global variables to top, and make some variables static rather
than global.
agent: Don't lookup the user twice in cockpit-session
agent: Return a proper error status if can't execute cockpit-agent

Fixes #498