Change the API endpoints and clean the code.

* Change the REST API resources.
  Use /models/:model-id/{definition,data} rather than {/definitions,/data}/:model-id
* Fix some database issues in the CouchDB backend
* Removed the tokens
* Removed the lettuce tests