Changes to ease debugging and developing the web ui

Currently the iteration process for developing the web ui is pretty slow. This is part of making it it a simple ```make```. When ```--enable-debug``` is used, you can do the following:

    $ builddir=x86_64/ # or './'
    $ sudo $builddir/cockpit-ws --no-tls --port 10000 --agent-path $builddir/cockpit-agent \
             --http-root $builddir --http-root src/web --debug

The first two patches are other incidental related fixes that I had floating around which would otherwise conflict with these changes.