Squashed 'lib/handlebars/' content from commit b5c4a33

git-subtree-dir: lib/handlebars
git-subtree-split: b5c4a33ab1f078537cee924d770d0da41a4b0e49
Merge commit '3521c1e2c96865414b78bee18f6bc9cb4430fcd1' as 'lib/handlebars'
Minor code optimizations