Rename "peer" to "resource" and correlated names.

This includes an intrusive schema update.
Don't log the XMPP id attribute.