Add an abstract base class to make deleting objects easier.

Similar to AdminObjectEdit, but not quite as polished for now.