Move queue/priorityqueue to new files.
Document forwards better.