Rubocop style enforcement and a pre-commit installer

Add `rubocop` development dependency to enforce good code style
Add pre-commit script to trigger pre-commit hooks, installer for it.