Update gems

* updated rails to 3.2.13.
* Updated other gems to it's latest release.
* fixed failed tests caused by updating gems like capybara 2