Some more work on the configuration.

Configuration draft:
https://gist.github.com/Minecrell/c560c148dff5b107654f