expose ShardStateIO in different ingestion contexts so it can be set at a high level
fix merge conflict in imports
Merge pull request #296 from gdusbabek/expose_shard_state_io

Explicitly set ShardStateIO in all the places.