allow time-based filtering for stat requests

Allow stat requests to be filtered based on start_time and/or end_time.
Merge pull request #21 from bpmason1/patch-2

allow time-based filtering for stat requests