add a from_iri classmethod to URLObject

This addresses #22 and #23, in a way that may be preferable to #24.

This method parses an address as commonly entered by the user, converting unicode hostnames to IDNA, encoding the unicode characters to a URI-compatible format using the IRI rules (mostly), and also avoiding double-encoding any URL-quoted characters in the input.