Added a builder to simplify creating a MongoStateRepository