Moved all references to file descriptors out of the generic object structure. Changed the poll()-related routines to deal with file descriptors instead of objects and integrated poll support into fd.c.