Reduce the number of return values

 - Use map & reduce to return the average over 10 minutes for the last week
 - Return every entry if a timestamp is provided

Fixes #29