API: Extract siteconfig out to an external module.
Merge pull request #1074 from wilr/modularizesiteconfig

API: Extract siteconfig out to an external module.