Queue plugin

Queues plugin that replaces #54.