Upgrade to rails 4.0.2

Because of a serious security issue
http://weblog.rubyonrails.org/2013/12/3/Rails_3_2_16_and_4_0_2_have_been_released/