New ActiveRecordRepository and a Rails::Generator

I added a ActiveRecordRepository which uses a Model as storage and added a Rails::Generator to easily set it up.
Fixed errors in ruby 1.8.7 due to Hash syntax
Fixed error for ruby-head
Merge pull request #4 from FlavourSys/master

New ActiveRecordRepository and a Rails::Generator