Support loading config from module
Merge pull request #799 from graingert/patch-3

#799 Support loading config from module

Thanks!