Refactor config-changes.js, p12. Moving funcs around.

No real changes, some comments and rearrangements.