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: Use correct address for Docker terminals.

Previously, this would use 'undefined' which means localhost and thus
mostly worked, by accident.

Closes #1377
Reviewed-by: Stef Walter <stefw@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.

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Factor out common code into get_page_machine

Reviewed-by: Stef Walter <stefw@redhat.com>
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.

Reviewed-by: Stef Walter <stefw@redhat.com>
shell: Local breadcrumbs

Closes #1365
Reviewed-by: Stef Walter <stefw@redhat.com>
tools: Make jslint print problems to stderr correctly

Since stdout is being used for the output file, print problems
to stderr.

Closes #1381
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
tools: Fix rcompile to work under other LANG settings

This is because the only portable way to detect whether something
is a function is to use the output of 'type'. That output is
translated (the -t option is not portable).

Fixes #1380
Closes #1382
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
test: Fixes to make tests set LANG=C before running

Lots of stuff requires parsing output from the host, including
log lines, and diagnostic messages from rpmbuild

Closes #1383
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
shell: Don't let "?machine=undefined" leak into the URL

This will come back as a string and we will try to connect to a host
named "undefined" via SSH.

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