use generic rte functions instead of tinymce

support tinymce as default, ckeditor if set
change 'tinymce' classes on dom elements to 'rte'
fix bad image url
fix bad alignment when loading content
fix collection references for new libZotero Collections
go back to using "close" for jqui dialogs

destroy leaves content we've rendered inside a dialog visible
fix initializing newly added ckeditors