Added GetAllMessagesByTime

This is to enable the frontend to get the latest messages rather than
needing to dump the entire message queue on each refresh.  Too much data
was being transferred previously.