Simplified module config API.
Added documentation for module-level configuration stuff.
Merge branch 'module-config'