Merge pull request #49 from stoewer/master

Basic javascript modules

LGTM
Prefix all REST API routes with /api/
Move all REST api controllers to controllers.api package
Merge pull request #52 from gicmo/apiPrefix

Prefix REST routes with api and put controllers api sub package

LGTM
RoutesResolver: New helper for the serializers to resolve urls
serializer: Add new Writes[URL]
Use RoutesResolver in the JSON serializers

Adapt all places where the serializers where used.
[conf] application.conf replace httpPrefix with baseurl
Merge pull request #53 from gicmo/RoutesHelper

Simplify JSON serializers by introducing a RoutesHelper helper class
tools.js: move to lib/tools

change isGlobal() to isGlobalOrUndefined()
models.js: move to lib/models
Application: end point submission takes now an id
editor.js: the editor app
editor.js: basic editor without post request
models.js: fix guards for missing new in model classes
editor.js: hide uuids as hidden data in the page
editor.js: adapt to new url scheme