Move initialization and migration of config partition to its own class. Want to reuse the code in Studio (DIRSTUDIO-1016)