Code quality

- Added grunt to lint js/coffeescript files
- Added [rails_best_practices](https://github.com/railsbp/rails_best_practices) gem
- Changed travis build to run both
- Made all changes suggested by rails_best_practices