implement join as master on some tables
Merge branch 'user_presence' of https://github.com/edwardt/ejabberd-modules into user_presence