Initial commit. Simple Sinatra app with active records.
Moved generic logic into a mini-middleware for sinatra : github.com/squareteam/yodatra
Moved the logger from the main app into the yodatra
Public/private, scaffhold the auth system
Authentication added to the API. Login/Register todo
Remove dev and test dbs from the repo
Use new ModelController feature of Yodatra for the UserController. Adds a no_route error from the api. Fixes an api format error
fix(register): Fix the /register route

- Adds token generation in Auth
- Fix in the Auth lib
- Fix the namings for the register route params
- Adapt test to the changes
feat(login): Adds the login route
fix(login): The login was not really working, now it's fixed

- Added unit tests
- Extracted some logic in Yodatra
- Api Errors joined in one class
- New /users/me route
- Fix custom HTTP Headers
- Tests, tests, tests !
chore(api): Extract error message in the errors class
feat(logout): Add a logout route to....  logout
fix(users_controller): comply with changes of yodatra 0.1.6
test: Add simplecov for coverage and add some tests
feat(db): Add all models and their migrations

- WARNING: non backward compatible changes on the User model you need to reset your DB
- Adds all other models: Orgas,Teams,Roles and n-n relationship tables
doc(api): add Yann doc for the api
API.md edited online with Bitbucket
API.md edited online with Bitbucket
chore(api): rewrite urls to serve the api on /api
Merge branch 'master' of https://bitbucket.org/squareteam/api-sinatra