[WIP] New badge system (API)

Track badge counts in Lion under stats