Expanded configuration options, moved file creation to hook, and did some cleanup to make more friendly with projects that have groups.

I've taken some of the best bits of the other pull requests here and expanded on them a bit.  Also, the file creation no longer worked in the middleware call so I moved it to a hook.  See the new README.md for updates.