Incapsulate encoding mechanics
Added debug capabilities for watching about last request and response