When I was doing a lot of programming in c++, I came across this
Embedthis Software[
^] - they have 2 web-servers, one 'embeddable' but Im pretty sure 'Appweb' is suitable for 'small footprint' - the only thing is, they have EJScript iirc, an 'enhanced' javascript ?