Add behat integration

Need to cherry-pick this to master ASAP.