Adding changes made on holidays
Refactoring more stuff
Refactoring logger.
Refactoring main application.
Redoing logging and adding integrity checker for application config.