refactored $injector from the controller

Removed the injectable vialolation of module wide global variables for
tacking the scope of events, now in the scope of a factory and hadles
all message processing.

Preping sollution for unit testing.