Refactor tests to make them work on node and make them pass.
Cleanup package.json
Setup svg badges for travis and dependencies.