Add code and tests for xmpp.avatar.upload