implemented tcp connections in react-cpp, changed constructor callbacks: a constructor callback now always gets passed a pointer to the constructed object as first parameter, because it would otherwise be so hard to capture it