Added the cache lib. And the start of the stats.go api handler