Build hooks into your code. The trigger or hook is called, looking for an implementation
For an example, after an execution, a registered event is a called like "finished POST" - then the call back, if it exists is called.
Inspired by drupal's hook mechanism.
* make the hook callbacks more flexibile