Xep 0079 amp

Redoing pull request to accompany https://github.com/esl/MongooseIM/pull/253