call TransformProcessType() later in the launch process

hopefully fixes #1152
use the Cocoa API to show the Dock icon
Merge pull request #1414 from skurfer/dockIcon

change the way the Dock icon is displayed
allow users to change the global selection trigger

fixes #1416
Merge branch 'dockIcon'
Merge branch 'selectionTrigger'