Implement common queue.

As noted in the diary.md, I've implemented a common queue.

Closes #29.
Closes #28.