fixed null pointer dereference in /join command

Command /join @/ leads to crash because jid_create("@/") returns NULL
Added notify to python API
Added patch from Dmitry to fix crash on delayed message from contact not in roster

fixes #219
Merge branch 'master' into plugins