Enable sourcemaps via brunch
Add router and config for app

* Refactor router functionality into router.js
* Add config.js to handle appRoot and apiUrl based on context