Refactor functions for converting paths to Drive ids
Fixes checkpointing

Almost-functional checkpointing at this point.