Handle multiple terms

RE: https://github.com/resque/resque/issues/893

So, I've tested this with a monkey patch, and it seems to work. I had a really hard time trying to get the tests to pass testing this functionality. The tests pass right now, but the new functionality is not tested.

Also, have only been working on 1.x. I haven't looked at master, but the line numbers are different so I wasn't confident to change those without figuring out how to write a test.

I'm open to suggestions on testing.