Changed the JID type to be an alias of string, rather than a struct. This allows it to be used as a key in a map, among other benefits.
ExtensiblelibraryforhandlingtheXMPPprotocol(RFC3920).Thiscodeisinspiredby,butnotderivedfrom,https://github.com/mattn/go-xmpp/.Thecoreoftheprotocolishandledbyxmpp.go,structs.go,andstream.go.Everythingelseisanextension,thoughsomeoftheprovided"extensions"aremandatorypiecesoftheprotocol.ManyoftheXEPsathttp://xmpp.org/xmpp-protocols/xmpp-extensions/ can besupportedbythislibrary,thoughatpresentonlybaseprotocolsupportishere.Ansimpleclientusingthislibraryisintheexampledirectory.Amoreinterestingexamplecanbefoundathttps://cjones.org/hg/foosfiend.