Added rake scripts and a precommit hook script.
Fixed pre-commit hook.

Fixed pre-commit hook.

Fixed pre-commit hook.