Implemented the ability for event hooks. Providing a greater degree enca...

...psulation for event trigger/action handling. Useful for extensibility, in-particular scripted language event bindings.

Read the source for details and uses.