The nature of AFGL 2591 and its associated molecular outflow: infrared and millimeter-wave observations