add converters for int values to Directives
introduce Navigatable trait for Document and DocumentTree
implement 'toc' directive (table of contents)