Flags - create, toggle, fetch and remove

Simpler interface for flags.