Refactor rosterwin.c
Merge branch 'master' into xep-0223