Refactor some RTL code
Add RTL-aware wrappers for DialogBox and CreateDialog

This makes previous RTL-changes (except for OBSMessageBox) obsolete
Add RTL-flags to main and log window if necessary