Export messages from message store for a time range

This will use the new indexes from #864 and will ignore any messages stored in an older version.
I'll reference `VUMI_DATE_FORMAT`, which is what the message serialiser uses.