Started to refactor C code gen into asm.js code gen.