protocol improvements

server now handles multiple requests in same connection.
added timeout on server socket connection