Test on 1.8.7

This adds automated public testing for Ruby 1.8.7 and fixes all the tests that had broken on 1.8.7.