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