Add compatibility with Rails-based resque-web

This is a working version, but not enough tested.
Also I have not tested backwards compatibility, but it should work.