Add batch_size functionality to spaces + test.
Merge pull request #336 from dwf/spaces_batch_size

Add batch_size functionality to spaces + test.