Initial rails 4 upgrade