Add Context::toString and printState method
Add Context::toString and printState method

Adding printState method to print the state of the contexts, for debug
purposes. Making the getFlagType(FlagBase*) a free function, and
renaming to getTypeOfFlag (it is used by Context::toString).

pcarlisle/horsewhisperer,puppetlabs/horsewhisperer,smcclellan/horsewhisperer,smcclellan/horsewhisperer,parisiale/horsewhisperer,pcarlisle/horsewhisperer,parisiale/horsewhisperer,puppetlabs/horsewhisperer