Adds karma test runner and a few integration tests

Integration tests target demo pages. Adds default `npm test` action.