Move index generation to own script.
Remove debug output.
Remove obsolete code.
First version of conversion from DokuWiki.