Add gemfiles for CI with rails 3.1, 3.2 and head.