Split settings handling into seperate struct. Settings are now read from XML. Due to that, command line handling was removed. Further refactoring.