Big cleanup of the main stats data and how its cached and served

* Split get_frontpage_data into separate cached functions with better naming
* Added API values for all data that's being generated client side. Client side calculation should be removed in the futrue to DRY codebase
* Renamed a good number of variables to be more clear