First attemp to add rails 2.x compatibility

Add the conditionals to add the railties depending if rails 3 is the version or not