Revamped config.py.

Abandoned the yaml approach with embedded directives like !config.Configuration. Deprecated examples.

Moved helper functions to config.py.

Added tests/test-config.py.

Ship it!