server/modes: add constants for the kinds of modes