shell: Don't copy around javascript and html unnecessarily

Run tests out of the source directory, and make the loading
of various test dependencies more verbose and straight-forward.

Adjust test-server so that it handles this properly as well.

Closes #720
tools: minify puts an 'autogen' warning when not minified

Have our minify tool put a 'This file is automatically generated'
warning in the file, if the file is not minified and looks like
normal javascript source.

Fixes #677
websocket: Make sure headers parse without space

Just an additional little tweak to the test case.

Closes #718
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
lib: Move documentation for updating patternfly into lib/

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
agent: Pass G_MESSAGES_DEBUG from cockpit-session to cockpit-agent

This allows us to set G_MESSAGES_DEBUG via systemd and have it
apply to all subprocesses in the tree.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
ws: Allow running cockpit-ws directly from build

Pass the --uninstalled option to run cockpit-ws from the
build directory. This will also load cockpit-agent and
cockpit-session from the same build directory.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
common: Also log to stderr if it is a tty

If running one of our cockpit processes, and stderr is a tty
then assume that we're being debugged and send log output there
in addition to the journal.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
HACKING: Update documentation for debugging Cockpit

Add info about turning on debug logging, how to quickly
iterate through module work, and how to run under a debugger.

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
test: Put core dumps in the journal during integration tests

This lets you look at the latest crash with this command:

   # systemd-coredumpctl gdb

Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: fixes bug that broke other dropdown menus

fixed bug that caused other dropdown menus to cut off content

Closes #714
Signed-off-by: Stef Walter <stefw@redhat.com>
 * Fix issues with remaining drop down menus.
ws: Added the validation of HTTP Host header

Added the check for presence of mandatory 'Host' header as expected by HTTP 1.1.
Together with a test case "test_webserver_host_header" in test-webserver.c

Fixes #663
Signed-off-by: Stef Walter <stefw@redhat.com>
 * Fixed trailing whitespace
 * Put cocpit_assert_expected() at top of teardown()
web: Make "select" buttons inline

Otherwise the dropdown isn't always under the button.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Add DBusInterface.call_with_args

Reviewed-by: Stef Walter <stefw@redhat.com>
test: Allow adding of network interfaces at run time

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Simple network configuration

Fixes #456
Reviewed-by: Stef Walter <stefw@redhat.com>
web: Use on/off buttons for connections

Signed-off-by: Stef Walter <stefw@redhat.com>
 * Whitespace fix
web: Collapse ignore-auto-dns network setting into method

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Improve network interface hardware information panel layout

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Throttle NetworkManager change notifications

State changes of devices happen quite fast and only cause visual
flicker.

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Indicate when a connection might be automatically activated

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