Initial working version of config dialog - everything doesn't work yet bit it's in a usable state.