Add some `Jid' utility functions; don't allow construction of `Jid'

Fixes #32.