add functions to manage totest

first https://progress.opensuse.org/issues/2550
implement factory_snapshottable

issue https://progress.opensuse.org/issues/2552
implement generic function to manipulate prj flags

https://progress.opensuse.org/issues/2556
Merge pull request #146 from openSUSE/coolo_totest

for python reviewer joy