First working distributed solution with a command-line client. Only supports one node for now, and has quite a few hard-coded values here and there.