Hide even more of our JS-related code from C.

Encapsulate JavaScript actions used by buffers.c.
Put jcx, jdoc, jwin, jwloc, jdloc, and uo
into an opaque struct, hidden from C code.
Convert html.c so that it compiles with g++.
Use of void * for JS objects is completely reverted.