Fixing an issue with quotes, adding unit tests and keepTemplateSuffix option

Hi, I needed to make a couple of changes so I could use your code for a project I'm working on - it was falling over because of single quotes embedded in my templates. I modified it to handle this by using JSON.stringify. I also added a keepTemplateSuffix option because my setup required it, and some unit tests.