Break testing main out of id.c.
Test program to give objects the ability to delete themselves.
Some clean-up.