Validate configuration (issue #8)

Added Joi schema to validate configuration objects. Solves #8.