added start and end parameter support to aggregate endpoint

@mgbelisle 
It'd be faster to return `nil, "", err` here I think.