Update MAM (XEP-0313) to support :0 and :1 versions

Description

https://github.com/igniterealtime/Openfire/pull/669

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
namespace.

Environment

None
Fixed

Assignee

Dave Cridland

Reporter

Daryl Herzmann

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Major
Configure