Implemented open and close
Merge branch 'master' of https://github.com/CUNY-Hunter-CSCI-Capstone-Summer2014/XMPP-Chat.git