implement connect and connect thread
implement read thread with buffer
implement disconnect function with killing all threads
implement data handling with simple data handler delegate
add some more logging info
implement write function
implement is connected function
add missing data handler setter function and variable