Added code to the client

Added code to the client for subscribing and processing file
patches.