Add support for Rails generators

If anyone knows how to add tests for this, I'd love to add them. This stuff seems a bit under-documented in Rails, so  there were no examples of how to add tests.

I could write something that actually executes `rails generate pavlov:query` etc, but that seems incredibly slow...