[views] Add a /stats view that returns a json representation of the instance's stats [in-progress]