Change connection lifetime managment

Tranlator plugin now indirectly owns connection, so
holding plugin pointer prevent connection to be destoyed.
Fix plugin lifetime during api calls
Add ability to delay callbacks to logger example plugin