Initial pass at Ruby 1.8.7 support

I can't test with 1.8.7 locally right now, so I'm letting travis-ci
run tests there. This might be a few steps until we finally get it
working.