Improve repository structure

* split source files to modules
* remove unused files
Minor settings refactoring
Add logging facility
Remove accidentally duplicated code
Fix work day starts time setting saving