Implements basic server and client infrastructure.