Fixed API Inflexibility; Version attoparsec bug

Created three functions: makeSocket, closeSocket and
makePendingConnection to let users create their own Websocket servers.
attoparsec build-depend was set to 0.12. This is incompitable with
Haskell platform. Causes cabal to update/reinstall packages which then
breakes the packages.