added html email support

- cleaner code in replaceTags function
- minor changes
Merge pull request #3 from timgatzky/dev

added html email support