support keys with dots and brackets

fixes #2
allow null value nodes as template params
support securedBy with parameters

fixes #3
emitter support for templates