Adds onRoute method to AppRouter
Merge pull request #1047 from jmeas/add-onRoute

Adds onRoute method to AppRouter