small improvements, added exception backtraces
added exception handling, small fixes, added plugin initialization stage
finally implemented external socket interface