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>