Move FlagManager to a common SF lib

So that CompositionEngine can use it.

Bug: 236745178
Test: builds
Change-Id: Ib873cb4a0b4231723a22fbc8fa22ec955aa6f329
19 files changed