Generate local TemplateResource class

Create a class with properties_schema and attributes_schema when
accessing a local template resource.

Partial-Bug: #1287164
Change-Id: I4b341a369046543c8e3ee1adf3906568d4d8161a