agent: Fix bash argument in textstream test

Closes #547
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
websocket: Log the chosen websocket protocol correctly

Closes #548
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
Quieten down travis notifications into IRC

 * Make them one line
 * No joining and leaving

Closes #549
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: Rename $cockpit.xxx to cockpit.xxx

Since $zzz is often used to indicate a jQuery selector, and
the usual convention is for global API like document.yyyy
or window.vvv is just in lower case.

Closes #558
Reviewed-by: Marius Vollmer <marius.vollmer@redhat.com>
web: IPv4 input control

Added to STYLE.html

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Actually close the panel-default div and fix indentation

Reviewed-by: Stef Walter <stefw@redhat.com>
web: Make sure IPv4 octet numbers are between 1 and 255

Reviewed-by: Stef Walter <stefw@redhat.com>
ws: Implement CockpitWebServer without threads

The main difference here is that things are no longer threaded
when serving HTTP requests.

This is necessary because we'll have some HTTP requests accessing
WebSocket channels in the future and locking everything will be
a major pain.

In addition the following fixes and benefits:

 * Don't waste a whole thread on unauthenticated requests.
 * Enforce a default 30 second timeout for reading HTTP requests.
 * Hard 4096 byte size limit for HTTP request input.
 * Don't leak so much internal state into error messages.
 * Better setup for queuing and returning responses and guaranteeing
   that they're correct.
 * Simpler to read POST input.
 * Simpler handlers.
 * No memory leak of per request signal detail (ie: the path).
 * No expensive GIO for serving files, just use mmap.
 * Use proper HTTP status codes for invalid requests
 * Fix various races and multi-threading issues due to
   main context usage.
 * Fix breaking out of the HTTP document root with double dots.

Although not implemented yet, set the ground work for:

 * Chunked Encoding
 * Correct HTTP version responses
 * Persistent connections (with multiple requests)

Fixes #551
Fixes #550
Closes #556