Fix integration tests

An old version of Capybara wasn't picking up problems that were exposed during manual testing:

JavaScript file submitting forms based on CSS class and several forms having the same class. This meant that when trying to save and edited Edition, the JS file would submit the wrong form and so not actually save the edits.

Upgrading Capybara and also using Poltergeist. Fixing failing integration tests.