Added door framework.  room.c optimizations.