Update to Flags API v2
Merge remote-tracking branch 'origin/master'