ParserService middleware cleanup

Moves getParserServiceEnv to an express middleware.

Change-Id: I2bdc3aa5102d96e90515fe80b762f88bc8537175
Merge "ParserService middleware cleanup"