Triggering GPIO of a ESP8266 webserver from another ESP8266

I think the OP could post his 3 sketches, but it looks like he has got quite far towards a solution using the methods which he has already chosen and has presumably also gained a useful learning experience. Achieving the missing functionality is probably only a relatively minor change to his existing code.

I would suggest he get something working first. After that, he can, of course look at optimising the architecture and minimising the component count etc.