Lots of changes&additions.

Implemented some more actions.
Internal structure changed, so tree data is accessible without having to walk the tree.
More fixes to string conversion.
Added an ugly dialog to input an ID and then a message.
More functions, more callbacks, more more.