construct references for each comment

This'll be needed to generate the References header: http://cr.yp.to/immhf/thread.html