Implementation of an XMPP networking stack for Android in Scala