Server Interop added

Added server communication and event callback. Most of which is still missing and not commented.