Add `encapsulate` param to get_schema

Change-Id: I68d5144d1f8b57873a4b2ef494bc4faf16c33483
In server-side code, handle timestamps in ms.

Change-Id: Ic0cb01cbee43d64f450e542688ebfcbcfdf4b106
Merge "Add `encapsulate` param to get_schema"
Merge "In server-side code, handle timestamps in ms."