Add a `didTransition` hook to the router.

For use in analytics and such, you may listen to this hook.