Configuration

Move to more configuration based setup, with support for selecting different setups/configs in ui.

Missing tests and testcoverage.