refactor integration specs

extract the configuration of the middleware stack with custom handlers to a flexible helper method,
so that we don't have to write the capybara setup in each spec.
version 0.2.0