Fixes BatchedStore interval calculation

There was a bug in refactoring and interval calculation in BatchedStore. This fixes it and simplifies the interval calculation. Also fixes the Scalding unit tests to use batch cover in input space instead of store space. Fixes #567
should we add a comment that maxTime is exclusive?