Total rewrite of configuration scanner to enable new features.