Reworking the stat system

This is almost a finalized api