Fix IPC server

Also add ways to send commands/messages