Start of templates to v6 API (Halted)

Can't do templates as v6 API - to much stuff is internal