Implement /api/selectflair for #20