Update Device.pm

Added code for tracing and debugging rpc request and response