UDP Server tuning

Added sockets.js to add all the socket creation functions there.
Modified the socket code to server a greater good.