TemplateDataBlob: Add comments referencing parts of the spec

Also moved 'inherit' up to make the code easier to follow.

Change-Id: I0059236924c5b49bff71a745b9895651c4eb6d0b
Merge "TemplateDataBlob: Add comments referencing parts of the spec"