Implement support for ClassLoader.getResource.

This works for all cases except when adding an InputStream directly to
the JarClassLoader, which I believe is impossible to address via a URL.