Update rails to Rails4 and all gems