examples: update examples to latest libclient API

Now, we have the option to output our debug messages
to any FILE stream. We default it to stdout.
hal/sm_io/*/swap/*: add config default function
hal/sm_io/*/swap/*: registered config function to SMIO strucure