Working query functionality for the InMemoryAdapter, plus beginnings of a Graph-based model adapter. Bugfixes all around.