upgrade some gems and lock it to rails 4.0.0