SASL MD5 Digest auth changes

I made two changes so I can share with others. On my Prosody XMPP server environment MD5 digest auth fails due to extra trailing slash on JID when no resource is provided. Also my server log points out RFC 3920 section 6.1 point 7 breach during SASL auth due to provided authzid attribute. Thanks for your work!