refactor sync socket to more generall req/resp socket
refactor filenames to easy overview