some fixes based on testing against real data sets, properly caps __timestamp grouping by to start/end time of query, properly truncates aggregate data
some fixes based on testing against real data sets, properly caps __timestamp grouping by to start/end time of query, properly truncates aggregate data

GlobalNOC/tsds-services,GlobalNOC/tsds-services