Update priorityqueue and triggeredservice

These two files should be in submittable form now.

I haven't updated the actual service to be able to work with these
changes, though.