Use Foundation (Core) data types
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 was deprecated because they do not follow proper Cocoa memory management rules.