Standardise JS checkpointing API, use it for notebooks
Make contents JS API consistent