VE-1747: Fix PHP errors, introduce config classes
Merge pull request #5805 from Wikia/VE-1747

VE-1747: Fix PHP errors, introduce config classes