Various cleaning.

Signed-off-by: Victor Berger <victor.berger@m4x.org>
Adding to_string() to API structures.

Signed-off-by: Victor Berger <victor.berger@m4x.org>
Missing API functions & some improvments.

Signed-off-by: Victor Berger <victor.berger@m4x.org>
API corrections.

Signed-off-by: Victor Berger <victor.berger@m4x.org>
Handler implementation.

Signed-off-by: Victor Berger <victor.berger@m4x.org>