Replace TAR with CPIO as packaging format, and remove `pkg.json` from it
Remove deployment via `cook`
Add support for resource cache (and a minor fixup)