Constructed stats refactor

I rewrote the filtering of constructed/stats with ransack and refactored the code to get all the stats to save a few hundred sql queries in building that page. This should save a few seconds when it.

The resulting graph looks bit different from the original because the original skipped the filter settings when retrieving global stats