add mocha tests for node/browser and code coverage
add travis config
Merge pull request #9 from philschatz/mocha-tests

Extensive Mocha tests for Node and Browser versions plus code coverage using Blanket and Coveralls