BAC-552: WikiFactory::loadVariableFromDB being called to get var value for a current wiki

We're currently getting ~3mm memcache hits (DB queries in case of a miss) because ``WikiFactory::getVarValueByName`` is called to get variable value for a current wiki. This change uses global variable instead.

@federico-lox @owend @psychonaut