[gui] refactor and focus fix for pvr dialogs

Refactoring some stuff out of switch/case section of OnMessage() to OnInitWindow() and OnDeinitWindow().

Restore the control states in channel osd, guide info osd and guide osd. This fixes the issue that the default control is not focused on init.