* Port cache subsystem to typescript * Extract an interface class * Use async for s3 cache; add tests for failure case