added a generator and a template for Rails

Adds a generator for Rails.

I think the generator can not know what is the user case of the user so most of what it generates is commented out. 
Hopefully its examples are good enough to guide the users of this.

I am not sure how this file is used further down so I could not test it. I think we will revisit this as we go.

Merge this after #142