lots of restructuring to get simple programs running under asm.js
compiler fixes, start writing asm.js tests