Factored out common code to get a resource descriptor from an item specification.
Added function "logDebug" to Handlebars context.
Fixed problem with interpretation of "files" that are declared in the context.
Merge pull request #9 from jeroenvanmaanen/master

Factored out common code to get a resource descriptor from an item specification