making more progress with porting.

Moved Capybara DSL compatible layer to a separate class