implement client ping pong
log unhandled client commands
remove spew
refactor: use switch rather than nest of if statements for server command handling