Add config validator for control.py.

The driver module is now dynamically loaded after the control module has
verified the config file. This also includes minor code cleanup in config.py.