Moved activateDoor and processCommands to Common.h.

Removed DOOR_SENSOR_TYPE, since it is not needed.