Update gemfiles
upgrade ruby version
use rails api base for controllers
Add rails-observers to gemfile
add protected attributes gem
Various fixes and omissions that rails 4 or rails-api doesn't need