Cleanup and nodeify

* Add precommit hook checks
* Change references to navigator to window.navigator (for node-webkit)
* Add node entry point (stub, but prevents crashes)
0.2.2