Implemented the hook system for the Router class.

Any class can now register a callback for any hook in the Router class.

Updated README.