Tweak store path generation to improve directory distribution

Use the middle 2 bytes of the timestamp in the mongo id (see http://docs.mongodb.org/manual/core/object-id/).