Added ?markdown mode to edit for easy debugging. Minor fix for gallery, testing different HTML cleaning algorithm for editor.