mds-kbdc: more work on the treeification

Signed-off-by: Mattias Andrée <maandree@operamail.com>
mds-kbdc: more parsing into a tree

Signed-off-by: Mattias Andrée <maandree@operamail.com>
whitespace

Signed-off-by: Mattias Andrée <maandree@operamail.com>
doc

Signed-off-by: Mattias Andrée <maandree@operamail.com>