Remove viewer dependency from MainObject
Rearrange main.cpp file and set up context property for consumer.
Rename Script as Helper and set up Consumer Connection
Remove viewer dependency from Consumer. Setup signals