This will replace hand encode/decode done in various places.
LayerDescriptor
LayerObject
metadata
pagectl draw-timeline