Structural refactorings as a prep for cluster support

 - Testing and simplifying configuration handling
 - Finalize all the things
 - Use generified commands with interfaces
Merge pull request #12 from lstrojny/feature/better-config-handling

Preparation for cluster support