API for operation with modal dialogs

This extends on PR #1037 
Its correct here too - http://rubydoc.info/github/jnicklas/capybara/master/Capybara/Session:accept_alert
not sure why its correct in one place but not the other