Rails Security fix

 * Upgrade Rails to 4.1.0.beta2 (Security fix).
 * Upgraded gems buy rebuilding Gemfile.lock file multiple times.