Code refactoring

Rolling file logger added. Message types externalized. Classes moved.