Added back-end callbacks for purging messages.
Add statem2 with non-bare remote JIDs. Fixed an error when after_middle_page was chose, while after_last_page should.
Added statem command for purging a single message.
Fixed single message purge.