added Context (for generic web apps) and JSONContext (for JSON APIs)