Moved templates and json into components.

Signed-off-by: Tony Stephens <tony.stephens@agilex.com>