Adapted code for API v2 standards and 1.5

Style changes

Removed Gemfile

Redefined old routes
Merge pull request #3 from eLobato/getting_access

Adapted code for API v2 standards and 1.5

* Fixed also permission probems with non-admin users