store user details on the relevant spark.

This is only a PR for the WS. It stores the authenticated user details if exists (e.g. when using passport).