allow debugging the calls made by elasticsearch client.

added ability to send {log:"trace"} in options to enable logging