SERVER-8678 Implement automated config schema upgrade from v4 to v5

Wrote the skeleton in preparation for the actual migration process.