Implemented Capybara.before_action & Capybara.after_action

Use Capybara.before_action and Capybara.after_action to start & stop a run loop in some of the frameworks that have a run loop.