Strophejs Xmpp authentication and presence handler service for angularjs