Basic Block Reference Counting

This patch adds basic block reference counting to all metadata drivers. Block counts are incremented and decremented accordingly. A future patch will hook this up to enforce the inability to delete blocks when they have references. 
Yeah, good question. It does an upsert, with an assumed left-hand-value of 0.