WIP: Create an actual bookkeeping system for D-Bus

This is better than the horrible dictionary-based system, which
is still kept since not all parts of the bookkeeping are fully done.