Add an explicit Type field to Resources

The type is already encoded in the resource ID, but this is handy for
API clients so that they do not need to parse resource IDs.
3 jobs for master in 1 minute and 30 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build Src
passed #3410
build:src

00:00:14

 
  Build Pkg
passed #3411
build:pkg

00:00:56

 
  Upload
passed #3412
upload:pkg

00:00:19