Move log type enum
Add Config class to store global configurations
General refactoring and cleanup