Core library for cstats providing statistical analysis, metrics collection, and data management functionality.