client.py/rest_server.py: debugging support for x-auth issues