makefile for emscripten codegen
simplification to codegen by deferred invoke macros
threadlib support for emscripten
improved timekeeping in main loop
rough first cut emscripten compat in gl buffers and disabled audio