Rename regs -> uregs
Change thr_create to use real function pointers. Fix repl to use uregs.