Clean up the handlebars helpers
- Get rid of references to Scope (only the core library needs scope now)
- Make the helpers more robust (do the right thing with None, empty iterables, 0, etc.)