Ugrade Rails to 4.0 branch