Add CLI command to validate configuration file

Should update lib/config.js to have one clean validation function. May be easier with JSON schema.

Edited by Aaron Goldenthal