load relevant javascript files on pages that need them
temporary fix for "upload from server" dialog

Since extjs has been dropped and we are not yet focused on Deploy
cleaning and rewriting, we just restored the ExtJS dependencies within
the plugin.

I've also just adapt some dialog javascript calls according to the new
jQuery UI dialog widget used in GLPI.