Updated import for resourceLoader and trayApplication. Cleaned up PhantomController a bit