Moving models out from app.rb file
Finished refactoring of current actions to JSON API