Refactors to ingest
Merged in upstream.
Added MetadataInputFormat test, deleted test file.
Merged in upstream.
Merge pull request #782 from lossyrob/gdal-ingest

Refactor Ingest, preparing for GDAL ingest.