Implement documents loader with continuations and remove execSync dependency