Add PersistentQueue (v2)

This pull request is intended to replace #65.