Lots of rewrites to further move toward new world order

Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>