Fix tests & upgrade development dependencies

An acceptance test was failing because `Rails` was not defined, and another because of https://github.com/jonleighton/poltergeist/issues/320.

The spec suite now passes, but in some cases the server is not shut down automatically, which requires manual cleanup.