migrate to rails 4.1

Working migration to Rails 4.1.1. Update gems and change basic configuration settings so that the app still functions. Further updates are still needed to complete migration.
Finish preliminary migration to Rails 4

Remove old dependencies. Switch whitelisted attributes to strong
parameters.