Rails 4 (Ruby 2) base API boilerplate