don't wrap atexit/finalize functions

Signed-off-by: Jeremy C. Andrus <jeremya@cs.columbia.edu>
massive refactor: do not use yet!

This isn't ready for prime time, but I needed a baseline.
Sorry for the mess...

Signed-off-by: Jeremy C. Andrus <jeremya@cs.columbia.edu>