#552 fix for use of URLDecoder.decode() with deprecated signature

Honestly, I thought this was going to be a one line fix.   
I added a field to the `ResourceLoader` class so that I wouldn't have to change the signature of `ResourceLoader.registerCallback()`. I also removed some unused imports