Have git hooks use node.js rather than PHP

Also remove the dynamic hook since it's unused