shell: Guard dashboard against untimely changes

Closes #1514
Reviewed-by: Stef Walter <stefw@redhat.com>
server-systemd: Migrate journal code into a package

This moves server code into a package. Put the main journal
into a component that is shown in an iframe.

The shell loads the server AMD module somewhat awkwardly, but
that's because it's not AMD code.

Fixes #1418
Closes #1473
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Bump version number
tools: Bring changelog from Fedora cockpit.specwq
bridge: Add fsread1, fswrite1, fswatch1, and fsdir1 payload types

Closes #1513
Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Also store name, color, and avatar in dashboard configuration

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Update shell.hosts to new dashboard configuration storage

This takes color and avatar directly from the dashboard configuration,
and uses the name in the dashboard configuration as a cache for the
pretty name of the target host.

Also allow setting of the pretty name via shell.hosts.

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: New shell.image_editor

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Server appearance edit dialog for dashboard

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Styling for multi-server dashboard list

Reviewed-by: Stef Walter <stefw@redhat.com>
daemon: Remove support for local avatars

Closes #1467
Reviewed-by: Stef Walter <stefw@redhat.com>
base: Don't recompile or list jquery.min.js

We have a global rule which does this for .min.js files, but make
this one an exception.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
base: Automatically register jQuery as an AMD module

If jQuery didn't get a chance to register itself as an AMD module
because it loaded before cockpit.js, we do so on its behalf.

Closes #1526
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
bridge: Fix double free in cockpit_channel_ready()

For base64 channels we were freeing the decoded payload twice.

Closes #1515
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
bridge: Allocate enough space for base64 data

Follow the GLib documentation guidelines for allocating enough
space for base64 encoded/decoded data.

Closes #1516
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
tools: Fix make-rpms on recent Fedora 21

There's a lot of default output on Fedora 21 by default, and this
completely breaks make-rpms. Add --quiet to make-rpms to fix this.

Closes #1527
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell, NM model: Remove unused functions

Namely, refresh_all_devices and refresh_object_properties.

Closes #1532
Reviewed-by: Stef Walter <stefw@redhat.com>
bridge: Add a prepare vfunc to CockpitChannel

The queueing of cockpit_channel_ready() and cockpit_channel_close()
was too magical and causing too much complexity.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
bridge: When we receive clean close before ready, don't close yet

When we received data or a clean close before the channel is ready
don't close prematurely. Make sure all the data is drained, and
then do the clean close.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
bridge: CockpitChannel "disconnected" when transport closes

The CockpitChannel closes unsuccessfully when the transport
closes. This lets implementations react immediately, even if the
transport closes without error.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>