Add integration testing support to login_user test helpers

Backward-compatible changes to the `login_user` and `logout_user` helpers that allow the test to simulate the relevant http requests with Capybara for integration testing purposes (where the current methods don't work). Hopefully spares people the need to find and then copy/paste a solution from the wiki or issue #33.