Recursive remove of headers

Copied some nokogiri functionality to remove namespaces, included a test also.