Refactored the MinkExtension integration for upstream changes

Depends on https://github.com/Behat/MinkExtension/pull/121
I have not updated the composer.json to make it use my fork of MinkExtension for now, so the Travis build will fail until the MinkExtension refactoring is merged.