refactor logic for data/this_week to be in models

- test that logic
- fixed a bug that was returning every day with 0 distance + another
  entry for that day with the real distance
make sure the runs array is output in consistent order