On Mac OS X, when you run any Java Web Start application the title of the application menu and the name of the dock icon is always 'Main', and the icon in the Dock is the generic Java application icon.
Compare this to Apple's Web Start where the application name is the same as the title from the JNLP file, and the icon is the one specified by the JNLP file. We should do the same.
-Xdock:name is now used with the title field from the information block. We let the icon download, and then relaunch with the cached icon for the app. Also did some cleanup for the generated shortcut.