Remove unnecessary code from server; add processing of new protocol commands.