Change doc comments to LDoc style

-- Add generated documentation
-- Add config.ld and customised ldoc.css
- Convert all Lua files to ANSI encoding with Windows-style
line-endings.
-- Some were unintentionally using UTF-8 and Unix-style line-endings.