some debug logs of requested methods and return values

Signed-off-by: Michal Bínovský <michalbinovsky@outlook.com>
refactoring of handling server request

Signed-off-by: Michal Bínovský <michalbinovsky@outlook.com>