statefspp and inout refactoring

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[api] Basic Writer is taken from inout

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>
[config] Tracing dumping/registration

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>