IPC system overhaul with macros, requests/responses structs (for issue #33).