PROTON-755: Updated rspec tests to use the newer expect syntax

Rspec is moving away from monkey patching objects, and this new syntax
reflects that change. Updated the rspec tests to work with Rspec 2.4 and
3.x properly.
PROTON-755: Add SecureRandom for use by Ruby 1.8 tests