Refactoring more stuff
Refactoring logger.
Refactoring main application.
Redoing logging and adding integrity checker for application config.