Added cleanup of remote logs.
Added support for remote debugging