Rails Security fix

 * Upgraded Rails to 4.0.3 (Security fix).
 * Upgraded gems by rebuilding Gemfile.lock file and removing gem numbers.