Second pass at JSHint fixes for hooks.js

This should fix all of the JSHint errors in hooks.js. Now we use a
jQuery UI dialog instead of confirm() whend deleting a points type.

See #6
Add a ruleset.xml file for PHP_Code_Sniffer, see #5