Added callback handler support for before_tick, after_tick, before_run, after_run.
Merge pull request #30 from marclennox/callback_handlers

Added callback handler support