Get correct username from HTTP header

Get the correct username from the HTTP request header
and insert it into the middleware context.

Closes-Bug: #1375611

Change-Id: I666d4df805cb7003b012c66b23c00987b3f51b3b
Merge "Get correct username from HTTP header"