Feature/next gen layout

More changes in order to bring the repo layout closer to the new Workspace layout.

 - Move api/ to rest/
 - Move most of configuration out of configure.js
 - Move configuration of ng routes out of configure.js

Things to do next (out of scope of this PR):
 - scaffold the html5 app using  `yo angular`
 - replace Gulp-based build with Grunt, the base is scaffolded by `yo angular`, get rid of the remaining `configure.js` code
 - refactor web into `webapp` and `server`

/to @ritch please review
It would be nice to have the global config available to the workspace. I think fixing that is outside the scope of this PR, but it is important.