Implementation of reloadconfig by Marc Rijken.

See #434