Various XML fixes to update methods

* Requiring XmlSimple 
* Fixed incorrect hash merging in add_share method
* Fixed incorrect header parameters