Add routing handlers of sorts so we route hooks to functions

Change-Id: Ic1edeec32519077dd51d484e8f115f08bca538fa