Backend processing fix - email and template file

Changes to receive angular js http passed parms and changed the files to
be merged in the template story