Update dependencies

Remove ldoc; add lualogging
Refactor - move logic out of command-line scripts

Also install templates
Refactor - make handleFile function local
Improve logging
Move is_a function to utils
Fix bug with ToC generation
Add File and Class entities

Move comment normalisation to separate function
Remove debugging prints; add a comment