Have you taken a look at mTCP[0]? There would be some good example code there. The TSR portion wouldn't be included in the mTCP code, but there is definitely code there for a webserver.
I have and that's the thing. Every webserver I'm aware of runs in the foreground unlike TSRs and PacketDrivers. I'm looking for a webserver that runs in the background.