Add support for inverse toggle properties.

A non-inverse toggle property is a standard published on/off field.
An inverse toggle property is a disabled off/on field.
Be more tollerant when detecting the current toggle state.

A data provider may return true/false instead of "1"/"0" or
"1"/"" (empty string).
Add some todos.
Do not get the input provider twice.