dojo/sniff->delite/sniff
handle global functions in markup, fixes #138
log query-error (fixes #173)