Reorganize source code

This is not yet a full refactoring of the source code structure. This PR is for seeing, if the refactoring goes into the right direction...

The changes do not change any behaviour by now.