Revert "Total removal of modstats as its wrong to spy on users and its broken."

This reverts commit 77bcf46ed2c8bbce879d7de993d019349dbfa1de.