Create local_client.c

Re-synced with Hugh's version.