Reinout better caching

Caching is now based mostly on the start/end date of the view_state (=daterange). This leads to MUCH better caching.