Implementation of Dataset.groupby summary methods

Fixes #122.
Fix DataArrayGroupBy.reduce bug

Also separated out the test cases to make it easier to identify issues.
Merge pull request #171 from shoyer/DatasetGroupBy.reduce

Implementation of DatasetGroupBy summary methods