Only escape if passed a string. Do not double escape.
Add template functions

- json => json_encode
- format => sprintf
- replace => strtr
re #302 : Remove ini files.