Refactor of discourse format, implemented export suitable for default
MediaWiki installation.