Replace old backend with new ANF -> SSA code generation

@dpino and @kbara, PTAL.  PTAL especially at the changes in the residualized code, to convince ourselves that the changes are an improvement and preserve correctness!