Changed multiple things:

1) added retype table.
2) added thread deactivation implementation.
3) in each capability entries, changed the poly to liveness id. We
don't integrate tsc into cap entries anymore. Instead we always use a
liveness entry to track release time.
4) more deactivation code in progress.