refactor router/view bloat to common.js

- templateContext used to pass data to template
- issue introduced with initial load and no nprogress