add pre-commit script asking for confirmation when APIs are changed

Addresses #454.