NIO Cleanup

Moved all the tcp/ip-socket related functionality to tcp package

Addition of Javadoc

Fixed some checkstyle related issues

Removal of unused methods.
I'll fix it.