API for operation with modal dialogs

This extends on PR #1037 
Writing overloads in such way doesn't produce correct documentation - Writing overloads in such way produces documentation incorrectly - http://rubydoc.info/github/jnicklas/capybara/master/Capybara/Session#accept_alert-instance_method (`@param text` isn't documented)