ffmpeg xscreenrec
xserver: split up client template
    there are various levels of xserver clients

    it starts with:
    using xorg fd
    stream connect to xorg via x tmp sock file
    read xauth home file

    then there are clients that do the above, plus:
    various thing in common like reading generic proc files
    but more notably access to various font resources

    then there are clients that use x shm