Progress on tcp connection.
Fixed compile and sbt errors.