COM_RESPONSE confirmation by daemon, client cleanup

- the daemon now confirms the COM_RESPONSE message by the client
- cleaned up client code
- fixed a bug where the nonce wasnt verified correctly