Add travic config for testing against rails 3.1, 3.2 and head.