Moved logging in to separate function

https://github.com/cucumber/cucumber/wiki/Cucumber-Backgrounder states
steps within steps are an anti-pattern. Got rid of one such thing, there
are of course gadzillion others.
Updated Capybara to be able to run tests with FF18