Extract router to app
Merge branch 'master' into gh-pages