Allow the JID resource to be set using an intuitive parameter name

See https://github.com/candy-chat/candy/pull/199 for some background