Revert "remove all backend code for stats"
Created by: coury-clark
Reverts sourcegraph/sourcegraph#31436
This broke Code Insights (language stats insights)
Created by: coury-clark
Reverts sourcegraph/sourcegraph#31436
This broke Code Insights (language stats insights)