updating gem dependencies to rails 4.0 and railties 4.0