Parallel radeapclient patch - partial commit 3

Added debugging, formatting, utility functions. Some renaming.
(New stuff still not called yet.)