Adding a non-protobuf allocate_ids method on Dataset.

Partially address #336.
Removing xrange and making test _Key return _Key instances.
Merge pull request #436 from dhermes/improve-allocate-ids

Adding a non-protobuf allocate_ids method on Dataset.