Minimalizing and simplifying MStore. Also adding default sorting to entities and collections.