add basesql groupby; fix last_known_warehouse_mtime
First version of auto scale.
Result bugfix
Merge pull request #11 from jniznan/result

Result.history now has auto-scale