Refactored getNamespaces to a function
Merge branch 'xml-namespaces-support' of https://github.com/mgaskill/behatch-contexts into xml-namespaces-support