lib: implement SetConfigOption

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>