wayland: update shm backend

Copy resize function from gl_wayland.c
Move the tempfile stuff from wayland_common to vo_wayland
Add osd drawing

Resizing is still buggy