Handles connections using xmpp_time
Minor change to state name
Merge pull request #22 from ptony82/features/handle_connection

Handles connections using xmpp_time