Added a function to apply a soy template and return the result as a string (rather than writing it straight into the dom)