Fix Date conversions, hide Long.js from user.

Assume we don't need uint64 support.
Migrate ID allocation to proto.
Fixing pagination tokens.
Fixing tests.