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
Wait, no it is the opposite of what I said due to the intersection.