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

Fixes #32.
Merge pull request #33 from jonkri/master

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