Implement modal (accept, dismiss and alert) API

* Retain backwards compatibility with legacy capybara-webkit API.
* Confirm dialogs are accepted by default; dialogs are dismissed.
* Legacy API usage will override the default action, and may cause
  undesired behavior if mixed and matched with the new API.
Travis config for Capybara 2.4