wayland: Don't duplicate xdg_surface setup code
Collect shared code from create_xdg_toplevel_resources
, and gdk_wayland_surface_create_xdg_popup
to setup xdg_surface into new function.
Split from !2992 (closed) where this function stays in wayland-surface while toplevel/popup setup is moved to their respective files/classes.