Updated the initializeers and routes file to make app compatible with Ra...

...ils 4. Updated Rails version to 4.1.6 and added corresponding dependencies to Gemfile.

What this update will do:
-> This update will allow the app to run with Rails4.
-> All dependencies needed have been updated in the Gemfile.

What is not fixed:
-> Views are breaking and need to be corrected.