Add jsdom to fix failing tests

Add development dependencies needed to execute the tests. Add `npm test`
support using Cake. Also add Travis support (and corresponding build badge)

This PR fixes #84 and #49.