[feature] commandline arguments, config file management.
Clone of !36 (closed) based of the 'process-management' update to master, just because it was easier for me to cherry-pick. This should go through integration tests now and be merged when those work.