Convert to oslo strutils.bool_from_string.

The only functional difference here is that the value '2' is now
treated as False instead of True. I suspect that's ok.

Change-Id: I30e75470cb3c312d7f92d389995eb6d845dd2fb0
Merge "Convert to oslo strutils.bool_from_string."