Allow multiple resources for the same JID in a MUC room

Implementation of esl/MongooseIM#240
OK, I think that for sake of code readability we can leave it as it is now. I made this comment before I reached the part of the code where `is_last_session` is used.