Flag models, mappings, and repositories
new command classes
Merge branch 'master' into flags