add a from_iri classmethod to URLObject

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.
Merge pull request #25 from radix/from-iri

add a from_iri classmethod to URLObject