Update extension to work with behat3

I've done the minimal work to make the extension work with  Behat 3, but there seem to be numerous problems namely admin login in magento context.