Fixes #2984 - API v1/v2 StatisticsController and remove JSON from UI controller