Add in metric tracking to xqueue.

Covers external grading and certificates.