Adding field to_string/from_string methods that encode to JSON/YAML strings.

Rather than using regexes, you can use `QName` from the etree api: https://docs.python.org/2/library/xml.etree.elementtree.html#qname-objects.