Reorganized Dialog.mm

Mainly ensure that the class implementation follows it's interface declaration.
Remove unneeded import of Carbon.h
Use new APIs for reading/writing plists

The previous APIs were deprecated because they do not follow proper Cocoa memory management rules.