One on one messages should be opened in a single tab regardless of the resource they came from
Messages to an individual contact should be directed to the full JID he last used to send me a message

In case I haven't yet received a message from him, I will send to his bare JID
Reset 1-on-1 target JIDs on presence
Release resource lock when receiving a message from an alternative JID
Direct one-on-one chats opened from a MUC to a user's real JID if we know it
Detect messages from room JIDs properly
Merge pull request #288 from candy-chat/feature/one-on-one-chat

One-on-one chat fixes
Fix package.json deps specs
Test coverage of presence handling
Reduce repetition in handling of our own room leave presence