Added InMemorySource and test.

In preparation for multithreading the in memory pipeline.