A small refactoring in renderer.
Added logging to inputstream.
Smal bug fix in CPR response regex.
Do CPR request in on-resize event.