Issue #137

Paul,
Sorry for the delay! 
Please  review the changes. I have been using an older version to fix this. However the changes made here are working fine in our environment.
One main thing that was missed (I think) was the passing of the baseUri to the  loadResourceMetadata call in the constructor. It wasn't possible to set it through initial options and wasn't considered. 
Other changes made are in regards to data structure for URI metadata, and how it  was referenced and parsed. 
I hope this is helpful. 
Please let me know if I am misunderstanding the original code and if it requires additional correction.
-Ivo