get the $CLASSPATH variable right and allow proper URL as well

adjusted some specs to check for path expanded entries. #2216
refactor FileResource.inputStream to be easier to use

for any client code which needs to convert a uri-like path to an inputstream
the way to go is ```JRubyFile.create(runtime, path).inputStream()```