Update with Lua 5.2 compatibility

- use @pgundlach's markdown.lua update
  (<https://github.com/speedata/luamarkdown>)
- update template.lua to export table
- change function order and use locals
Load and write CSS from template
Treat helper modules as sub-modules
Add license file
Update links in introduction
Use local variables