Add the rubocop gem.

Forgot to add it in the last commit.
Place the pre-commit hooks in a more appropriate place and make use of bundler.

More portable now (ie, works on windows....)
Update the pre-commit gem.

Fixed a minor bug with windows.