Upgrade Rails to 4.04 and general upgrade for all gems