Update generators for Rails 3 or 4

Detects the version of rails and uses the correct template model file in selections_scaffold generator.

Also updates appraisals to test on Rails 3.2, 4.0 and 4.1