Switched tests to be run through mocha-phantomjs.

This will allow testing of code through the browser, giving us the ability
to test server requests and UI code.