Caching code added

Added MemoryCache utilizing IResultsetCache implementation which is
usable with the new v4.0 resultset cache system. No tests yet (will
follow).