decouple SubmissionQueue from webapp/servlet dependencies

This change allows code outside a web application to act as
a submission queue.