Created parent process class.

This class will hold most of the mundane communication logic for each of the
processes, so I don't have to retype everything constantly.