doc: Add API Listing link when talking about API

Closes #1361
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
server: Fix layout of terminals resize to contents

Size the terminal to the contents properly, and tweak the margins
a bit. Other minor cleanup.

Closes #1362
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
base: Move patternfly into base package

This allows us to update it as with other dependencies, and have
stable versions, along with the ones where we track upstream more
closely.

The login page is now without external JS or CSS and pretty much
independent.

Closes #1363
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
bridge: Better debug messages when loading packages

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
bridge: Use g_hash_table_replace() so that keys match values

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
bridge: Hold refs on CockpitPackage while we add/replace

While adding and replacing packages with aliases, and putting
checksums in place, hold references to the packages themselves
so that if their main name gets replaced during processing,
we don't access invalid memory.

Closes #1372
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
tools: Simpler jslint when not processing HTML files

When processing HTML files our jslint invocation has to be rather
complex and hokey. But for javascript files, it can be pretty
simple.

Closes #1373
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Simplify realms code for System Information page

There were some leftovers from when the dedicated realms page was
removed.
shell: Make sure to update the menu when cockpit.user changes.

Also, don't show any items until the user info has been received.
shell: Fix paddings for storage

Fixes #1374
Closes #1375
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
test: Add extra restart allowed journal message

The "request timed out, closing" happens intermittently during tests.

Closes #1376
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Remove getTitle method of dialogs.

It is not used and just duplicates what is alread in the
h4.modal-title of the dialog.
shell: Factor out common code into get_page_machine.
shell: Don't encode breadcrumb in URL.

Instead, show a global breadcrumb that always looks like

  Hosts >> $hostname >> $page

The hierarchical navigation functions "go_up", "go_down", and
"go_sibling" have been replaced with "go_rel".

Every page now has a "machine" option that gives the address of the
machine to connect to.

This is an intermediate step, and the next commit restores full
navigation by putting local breadcrumbs into the individual pages that
need them.
shell: Local breadcrumbs.