Promisify the parserEnvMw middleware

Change-Id: I56c1b768a7194ab29f27c0752284ccead8ed85f7
Merge "Promisify the parserEnvMw middleware"