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.
These are in alphabetical order so `[--checkconf]` should go at the start.