added config factory and usage
Merge branch 'master' of https://github.com/thompson4822/rulez