finished createHtmlPage func.

* Posts previews but then can't do anything else with them.
* markdown func coverts markdown-formatted string to html-formatted string
* more logging
* removed global_previewDir, it has to be in the preview/ subdir of global_htmlDir now