Fixes #3: implement basic bindings for directives
Merge branch 'directives'