Fix total byteSize tracking in connection

Previously no tracking was done so the cache size was effectively infinite.

This fixes #7
Use this rather than self in root function
Merge pull request #10 from kpdecker/byte-size-tracker

Fix total byteSize tracking in connection