similar to pull request 10 for node. this is the analog for java/rhino
Merge pull request #21 from mattoshry/master

implement url resolve for rhino/java impl