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.