Initial commit for a model of the API
Move Context class to its own module, context.py.
Change imports to reflect moving of Context class.
Remove old copy of Context class from client.py