Added Socket validity test

server.py will display more info on created and connected socket. Added
isValid() method on Socket.