Adds context ns

Using core.memoize for LRU caching of contexts by API key