Export validate config

This moves the validation logic of ConsumerConfig instances to a separate, exported method, so it can be called in isolation, and can be called from outside the package.

@eapache