bg - Support rails 4.0. Added appraisals to test against both 3.2 and 4.0. Also tested against latest ruby version.