More work on the Pyramid-aware rq worker

This changeset is based on the previous work-in-progress and on the
worker code in the latest rq.
Add .gitignore file