Factor out old dev-mode detection code; use new immutant.util/dev-mode? function instead.