Allow multiple resources for the same JID in a MUC room

Implementation of esl/MongooseIM#240
Ugly `case`. `find_jid_by_nick` should always return list.