Fix #50 - Missing time import.

Also added tests and made a minor modification to Key.to_protobuf().
Merge pull request #53 from jgeewax/datastore-helper-missing-import

Fix #50 - Missing time import.