moved old files and added socket.io authentication

in the sockets, you can now know who is sending the messages and make
sure that the socket connection doesn't complete if the user is not
logged in.