Add in metric tracking to xqueue.

Covers external grading and certificates.

I'm not sure what the best way to centralize this code is.

@flowerhack @cpennington