Queue.get_messages() continues where it left off

Subsequent calls to Queue.get_messages() remember the marker from
the previous call and only return messages posted since then. This
can be overridden with the new "restart" parameter.