Switched to NSUserDefaults

Replaced CFPreferences with NSUserDefaults, this is much cleaner and
gives us commandline args.