Calculated datasets using rollups

Fixes #407 
Fixes #406 

*MIGRATION* (drop and recreate datasets table):
```
cql/20141023_datasets.cql
```
I think this function has a wrong name. If we don't include synthetic, none of the synthetic devices is marked as true on that field because it gets excluded.