Popup windows handling support

Next try ;-) 

Implementation of proposition in https://github.com/Behat/Mink/issues/158