Config simplification and validation.

Depends on #13.
If we are going to release, we need to validate config.