Move watir-specific code into step definition.

The before and after hooks will be run before each scenario,
and we don't want to instanciate a phantomjs browser in
scenarios not using watir.