Added a template for easier setup

Also modified the generator to allow field and index specifications.

I'm doing a tutorial on NoBrainer for our docs, and made a couple of tweaks to streamline the process. I'm new to ruby/rails, so let me know if there's a better way to do this.