Allow cocoa_main() to react to arguments.

Slight reorganization of main() to allow cocoa_main() to react to processed args.
Addition of --app-style argument, which can solve the problem in issue #635