Set up karma (mostly) and package.json so it will be easier for others to set up.
Left scope of .js tests to those in the htmlrunner.
Ignored some vim and node files.