Update the object cache/properties only when action is successful.

 Previously some object properties were being set before the event
 (change label/purge), and if that event threw an exception for some reason,
 the object would have a incorrect value, or not be present in the cache.
Fix and some reworking so that Tuque leaves no temp files behind.
Merge pull request #41 from nigelgbanks/1.x-update-cache-on-successful-purge

Update the object cache/properties only when action is successful.
Merge pull request #42 from jordandukart/1.x

Fix and some reworking so that Tuque leaves no temp files behind.
Fix removal of RDF literals.
Merge pull request #43 from adam-vessey/1.x

Fix removal of RDF literals.
PHP 5.4+ issue

SimpleXML objects seem to be handled differently in 5.4+
Merge pull request #44 from mitchmac/1.x

PHP 5.4+ issue
added additional namespaces, removed invalid param
Merge branch '1.x' of github.com:Islandora/tuque into 1.x
sanitized inputs
added return value to pergeObject
Merge branch '1.x' of https://github.com/Islandora/tuque