a base for higher level xmpp scripts using coffeescript