Fixes network protocol handler.
Adds functions to register files on each client.
Removes obsolete code.