Address issue #60

The validate_doc operation in xml_security.rb was modifying the original document, making the second run fail, so the code now copies the document before modifying it. I took this approach instead of memoizing the result in case there is some legitimate case in which the second invocation of validate should fail (e.g., after making an options change, or altering the response manually, etc.).