Clean up Cucumber config so we can generate other projects

In addition to writing tests against Rails projects we want to also
write tests against more plain Ruby projects. There are global variables
and behavior which can be shared between these two kinds of tests.
Fix undefined Array.wrap when AR isn't loaded (fixes #335)