Cleanup and Reduce global states for future multi-threading

 - Embbed Config and Options into the cloudmig Context
 - Move the instanciation of any global that requires inter-compilation unit
 access to the main.c file
 - Rename any global that does not require inter-compilation unit access to
 unique_*
 - Remove unnecessary globals
 - Properly close the file streams for the temporary profiles (load_config.c)