adding support for lang query param for prefix switching
fixing unit tests
reducing code duplication and fixing unit tests
Merge pull request #19 from Wikia/lang-support

adding support for lang query param for prefix switching