WIP: add checkconf

Add a way to check configuration without starting up.

"WIP" because I'm unable to run on OS X right now for some reason, so I can't really finish this.