Add Util.openFile() and fix more URL/file opening bugs.

 - The incorrect path was passed when browsing plugins.
 - The Desktop class was used directly in the HistoryPanel and
   UploaderPanel classes.