added support for jsonifying params using double curly braces - discuss please :-)

Didn't think this should go in string.interpolate, as it would break if optional "pattern" argument was passed in. But if someone has other ideas where this might work (one example would be to use a single regex rather than two different ones and somehow handle it in interpolate(), but there may be others), let me know...