Getting the logged in user Id via an app proxy

lol, maybe I’ll throw this away and have another stab. It’s taken forever to just figure out how it all works. The docs seem wired towards ruby and that is it, nothing describes very well the workings under the hood. I had to reverse engineer a lot just to get it to work at all.