remote_ui: Move handler registration to remote_ui.c

Also don't defer attach_ui handling
ui: Fix ui resizing and change some method names