Automatically run `npm test` before a commit using 'precommit-hook'.

I use this in a lot of modules I write now - very handy, makes it that much harder for contributors to submit modules that fail the tests and style guides.