Allow multiple resources for the same JID in a MUC room

Implementation of esl/MongooseIM#240
Ugly `case` bis.