Use a high level API from Nokogiri to deal with XML attributes.

The former implemention does not works with namespaced attributes
(like `xml:space`) since the namespace information lives in the
Attribute object and not in the key/value Hash.
Make `SvgOptimizer.optimize` work with raw Strings

The old behavior or dealing with files now lives in `SvgOptimizer.optimize_file`.