added additional functionality for json generation. also enabled proper template system.

MISSING migration files for this - stand by for another update