Update MAM (XEP-0313) to support :0 and :1 versions
This PR adds support for multiple versions of MAM in common deployment, the
:0 and :1 versions.
While these two variants use much the same protocol, the message delivery
and "fin" markers are
delivered in two different ways, and they therefore operate in a different