Adding rubocop and running it on app.rb
Misc. style fixes.