Upgrade Rails to 3.2.18.

(cherry picked from commit 7afcf1f44a86f8ef3a627c7dc7c93c46fcc7fbf5)

Conflicts:
	Gemfile.lock
Update selenium-webdriver to 2.14 series for Firefox 29 compatibility.
Update bundler to 1.6 series.