fixes #1775 - API versioning name space
api v1 - fisrt version of bookmarks controller
added architectures controller in v1 API
Fixed bookmark tests (API v1)
Fixed error handling in BaseController
api v1 - operatingsystems controller
api v1 - Authorization

* added authorization handling to api and tests
* fixed auth handling for controllers without auth
* handling status code in permision related errors
api v1 - architectures controler and tests
api v1 - tests for operating systems controller
cleanup after merge conflict with latest develop branch
api v1 - fixing permissions

cleanups in base controller
split api routes to separate routes file
api v1 - render errors with rabl

better detection of permission failure in model
fix ApiConstraints
catch bad routes in api and return json
api v1 - render home#index links from restapi
api v1 - restapi renamed to apipie
api v1 - Users controller and tests

- split api routes to separate routes file
- better detection of permission failure in model
- fix ApiConstraints
- catch bad routes in api and return json
- render home#index links from restapi
- fixed resource params recognition
[API] - minor fixes

- fixed api index action still refering to old restsapi gem
- currently forced apipie to load DSL so we can reuse its DSL in our views
Openstack uses username/password.
ensure no extra white spaces are added to the provisioning templates editor
ensures that auto completer for users search works even when you are not an admin