Add declarative config parsing done up front.

Fail fast before any connections are made.