Cleanup as per jshint.  Remove unused files.
Add testing script for headless testing via casperjs/phantomjs.