Add ability to get a cached resource by url

Add mapping for resources loaded by the loader by URL and add some methods for accessing that mapping.
I did this for ejecta/cocoonjs environments, not sure if it is necessary. I'm not familiar with those platforms.