Bug counts on project show and index

Hmmm…  Probably not for V1, but it would be nice to let, say, the cupcake dashboard re-use our bug panels, which probably means breaking the dependency on mockup (at the very least).