19751 - Fix and centralize handling of boolean values for settings

In the past boolean values in the config files where parsed in a bespoke
manner by the config class and individual plugins.

This commit adds a str_to_bool method to the util class which gives us
a consistent way of dealing with boolean like strings.
19751 - Fix and centralize handling of boolean values for settings

This commit fixes Util::str_to_bool handling of TrueClass and FalseClass
parameters.
19751 - Fix and centralize handling of boolean values for settings

maint: fix activate agent logic