Add a pre-commit hook to detect changes to core

This is pretty much a barely modified copy of Drew Hunter's gist
here - https://gist.github.com/drewhunter/8037753