Communication

Moved IPC code to a shared lib. Communication module unaffected (can't test it).