Add a management command to clean up expired messages

This management command can then be put in a cron job in order to
periodically remove all stale messages.