Text export lua scripts

Fixing /scripts/forum-dwarves.lua to work with 0.40.13 and adding new scripts/markdown.lua which is doing basically the same stuff, but in markdown (for reddit posts)
Done