Add export_dialog_loop() function from wpc_yafaray.erl.
Fix some UI code.