Update to Rails 4.0
Fix tests for Rails 4
Use rails secrets
Fix var naming
Merge pull request #23 from strangebutwonderful/rails4

Rails4