Resolve files in resource types

This adds a new step resolving files in Resource type, allowing to embed
templates directly in stack files and referencing them in types.

Change-Id: I147894e51505b01ebfc3e1de982f20a45471c5cd
Closes-Bug: #1291445
Merge "Resolve files in resource types"