began refactoring

- implement backend in single 'asgard.js' file
- implement type-agnostic functions for get/post/put/delete
- define routes for REST API in a unified way
more refactoring
Merge branch 'master' of github.com:lettis/Asgard