Added Edit existing email templates

Added new Edit feature. fixed context menu generation. However context
menu will only work within the browser action popup due to WebSQL
database and javascript being on website level and context menu is
browser level.