Fixed information flow in DEMO.process_authentication: respond with digest, if received digest. TODO Check this.