Panic when MySQL/Redis/Config init fails. Also added Config Get/Set methods and some refactoring