Added basic escape character support

- Added basic escape character support, still has one case where it
doesn’t work (`{{var}})
- Did some code cleanup