Altered main to use the global_sim_core singleton.

Task @T60 : Main now instanciates the global_sim_core singleton
to allow other classes, particularly sensors, control and monitor
routines to access it in controlled ways. Built and unit tested.