Using template file for emails.
Added JSON support to basic types.