Added router.routed event and relevant test.
Tweaking code.
Merge branch '4.1'
Allow an "as" method on resource to set prefix on all route names for that resource.
Merge branch '4.1'