Add the jslint pre-commit hook.

This pre-commit hook will run the zoocasa:jslint rake task before
allowing you to commit.
Reorganize some shared code and allow for git config options.