Changed API & code standards

Added connect & close methods to Client interface.
Reviewed code standards.
All arguments used on Server are passed to socket.listen.