Add permissions support in Books templates
Resolves gh-23