Fixes #7233 - Drop Ruby 1.8.7 and revert Ruby 1.8.7 specifics

- [x] rake test passed
- [x] rails server loaded and function correctly
- [x] Ubuntu 12.04 packaging blocker issue 
- [x] drop 1.8.7 tests on Jenkins
Nitpick, add `require 'securerandom'` to this file