Merge pull request #146 from dmitry84/master

exclude long title from TOC, typos
Replace more hard-coded argument documentation with data from syntax map.
Use attribute macro in remaining function documentation.
Internal links without page name?
Fix parameter documentation
Quote example code with new macro.
few typo and formatting fixes
Merge pull request #148 from teroka/typofixes

few typo and formatting fixes
Document macros, add cheatsheet
Fix some links
No need to escape
 is actually not a keyword
Document new sys variables: inputdir, masterdir, libdir, bindir, failsafe, update, local_libdir
Add filestat() documentation.
Merge pull request #149 from tzz/tzz/feature-sys-variables2

Document new sys variables: inputdir, masterdir, libdir, bindir, failsafe, update, local_libdir
Include table example.
Fix link in code block to the real thing.
More cheating
Rename sys.update and sys.failsafe: add _policy_path
Remove unneeded macro and put filename argument first