Add mocha, jscoverage, jsdom and chai
Move test libs into test/vendor/
Add travis
Add support for running 'npm test'
Update tests with jsdom support
Implement coverage testing via 'npm run coverage'