Extract session context objects into their own objects.

Extract session context from user.js & network.js into two models, user-context and network-context.