Redmine#6008: provide Mustache % and $ escape sequence for regular and compact JSON serialization

Modified by: Kristian Amlie <kristian.amlie@cfengine.com>
Merge branch 'tzz/redmine6008-variable-serialization'

Conflicts:
	libutils/mustache.c