move test to server.js, use relative paths
use commonjs-style exports where possible
use require() instead of eval() in the server test, setting globals for document and window with jsdom
separate browser harness with exportified index.html, move should into the test itself
only run the test/server.js in mocha
make sure the script has an src attribute before trying to split on it
Merge pull request #7 from substack/master

properly split up to run on testling-ci