Added presence_error tests, added muc_close()
Merge branch 'master' into plugins