HJB Equations for the Optimal Control of DDE’s with State Constraints, I: Regularity of Viscosity Solutions