Remove slow ingestion code and general clean-up of unused storage code.

This is a pretty aggressive clean-up of the ingestion code. I tried to remove anything that didn't have a test and isn't used downstream. /cc @raronson @charleso