Convert {#custom}...{/custom} helpers to be more like handlebars-2.0

Change-Id: I021bf98aa779178e76b861145fa07251d7e6bfbd
Merge "Convert {#custom}...{/custom} helpers to be more like handlebars-2.0" into frontend-rewrite