Implementation of resource containers, but hard-wired to only use one.

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Move OPEN/CLOSE into RTS for thunk, eliminate expr case.

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