This two patches are improving hooks a bit with ability to load hooks from arbirary python modules (which are not in sys.path) and with example of diffstat hook (with updated documentation reflecting changes in hooks loading)