Fixed leaks in /affiliation and /role
Free datetime on ping errors
Removed hash_table_iter usage for room roster
Merge branch 'master' into plugins