Add time based data grouping to the API and some sane defaults for the graph. Fixes #4.