Add on_change_callback to config variables. These callback can be defined in the ConfigVariable object and is called, when the variable is changed.
Merge pull request #877 from normanjaeckel/ConfigChangeCallback

Add on_change_callback to config variables. These callback can be define...
Clean up main and move the code to __main__.py