raise rails compatibility to rails 4.0

this adds rails 4.0 to the allow dependencies, also this runs tests on travis now against rails 3 and 4