Move connect() and pendingWriteBuffers()

These methods moves to implementations of Transport.
Fix javadoc parameters
Fix javadocs and related Exception
Fix allocation algorithm for TaskLoop
Add blockingConnect()