ensure propagating mouse events to the cli application (NSApplication needed to be initialized properly)

+ various fixes along the way while testing the cli interface