Changed MemoryProvider to use QueryContext
Added support for memory.* query in ProvidersFactory