groupserv: add flags migration infrastructure (ref #279)