fixed typos
rafectoring to simplify coming local node feature:
 1) taken client wrapping out of ClientFactory, which now depends on new ClientWrapper
 2) create resourceregistry interface where register and close all resources
 3) rename ClientScopeSyncRunnable to ClientScopeSynchronizer
added comments and removed todo. not supporting unregistering resources for now
refactoring: taken creation of ClientScopeSynchronizer out of the ClientWrapper into proper factory used directly in ClientFactory
Merge branch 'master' into 0.19