Rails 4

Migration Successful. All tests passed. 

Now have to migrate to Rails 4.1 where some procedures are deprecated, right now using gems for those procedures. Will remove in the next patch.

Caution: Themes_for_rails is not compatible with rails 4. Have to manually change the routing process.