Added class Socket.
First step towards a ClientMessageDispatcher.
Enhanced message dispatcher.
Keeping global namespace clean by using AMD wrapper modules.