Initial commit of Hooks module.

As requested.

Not yet tested, mostly based on SDKHooks design.