fix rollup for hashed partitions

truncate timestamp while calculating the partitionNumber
Add test for bucket selection
Merge pull request #791 from metamx/fix-rollup-hashed-partitions

Fix rollup hashed partitions