More router chainable APIs.

-Also added a new event that is raised whenever the router handles a not
found.
-Some fixes to the TypeScript definition file.