MIFOSX-1786 Allow usage of UGD (Templates) for Hooks

This was done as part of:
http://www.google-melange.com/gci/task/view/google/gci2014/5910530132803584