Move context request from xhr.js to network.js
Clean up

Get rid of duplicate state held in top level variables and within context.
publish context_info with the full updated context, not just the passed in context.