Add isValidBareJid(String) and validateBareJid(String)

to JidUtil.