Work in progress
Merge remote-tracking branch 'daniel/LibraryConcurencyRefactoring' into
LibraryConcurencyRefactoring

AND

Added new class MainExecuter to execute code in Main thread.
Work in progress. Cleaned up MainExecuter.
Made MainExecuter singletone.
Move connections to c-tor in MainExecuter, allow using MainExecuter from main thread.