Rails 4 upgrade

Merging Rails 4, Ruby 2.1, CouchREST 2.0 and all other upgrades from [Quoin](https://github.com/rdsubhas/RapidFTR.git)