updated socket server (server.php, socket.js)

server.php now supports:
  notification of new connections
  notification of established connections for new connection
  notification of closed connections
  autodetect of server name
  unlimited users
  multiple channels
  sending messages goes to all users except sender
  explicitly set timeout to unlimited

socket.js
  added testSocket() function to quickly test sockets