code tweaks and bugfixes

full remote daemon support, multi-daemon multi-tx support (async validation fixed), reorganized codebase.