Merge pull request #20 from mattoshry/master

handle case where specified listener is not registered in call to unregisterListener
Merge pull request #21 from mattoshry/master

implement url resolve for rhino/java impl