Fixes checkpointing functions

Updates to new Contents interface (using just path instead of path and name) andfixes code that wasn't updated to ES6 promises from jQuery promises.
Fix spacing/tabs
Merge pull request #40 from KesterTong/checkpoint

Fixes checkpointing functions