Extract context object squashed

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