Move router to it's own file
changed popstate callback to correct fn
added package.json with dependencies
added client side router class
updates to api in index removed router.js
added test files