Made the agent verify resource compatibility in checkpointResources().
Made the agent verify resource compatibility in checkpointResources().

In handling CheckpointResourcesMessage, the agent should first make
sure the checkpointed resources are compatible before it syncs local
disk state.

Review: https://reviews.apache.org/r/51866

gsantovena/mesos,Gilbert88/mesos,chhsia0/mesos,abudnik/mesos,zmalik/mesos,yuquanshan/customizedMesos,yuquanshan/customizedMesos,zmalik/mesos,reneploetz/mesos,Aman-Jain-14/customizedMesos,neilconway/mesos,neilconway/mesos,craimbert/mesos,Aman-Jain-14/customizedMesos,kaysoky/mesos,craimbert/mesos,reneploetz/mesos,chhsia0/mesos,craimbert/mesos,abudnik/mesos,chhsia0/mesos,jpeach/mesos,asamerh4/mesos,Aman-Jain-14/customizedMesos,reneploetz/mesos,asamerh4/mesos,craimbert/mesos,abudnik/mesos,neilconway/mesos,andschwa/mesos,zmalik/mesos,abudnik/mesos,chhsia0/mesos,verizonlabs/mesos,dforsyth/mesos,jpeach/mesos,verizonlabs/mesos,chhsia0/mesos,jpeach/mesos,abudnik/mesos,Aman-Jain-14/customizedMesos,dforsyth/mesos,Gilbert88/mesos,jpeach/mesos,gsantovena/mesos,neilconway/mesos,neilconway/mesos,yuquanshan/customizedMesos,jpeach/mesos,Gilbert88/mesos,andschwa/mesos,andschwa/mesos,kaysoky/mesos,dforsyth/mesos,gsantovena/mesos,dforsyth/mesos,Aman-Jain-14/customizedMesos,gsantovena/mesos,kaysoky/mesos,kaysoky/mesos,verizonlabs/mesos,chhsia0/mesos,zmalik/mesos,asamerh4/mesos,jpeach/mesos,Aman-Jain-14/customizedMesos,abudnik/mesos,dforsyth/mesos,reneploetz/mesos,craimbert/mesos,zmalik/mesos,verizonlabs/mesos,reneploetz/mesos,jpeach/mesos,zmalik/mesos,neilconway/mesos,abudnik/mesos,dforsyth/mesos,verizonlabs/mesos,verizonlabs/mesos,zmalik/mesos,asamerh4/mesos,andschwa/mesos,andschwa/mesos,Aman-Jain-14/customizedMesos,andschwa/mesos,reneploetz/mesos,craimbert/mesos,yuquanshan/customizedMesos,chhsia0/mesos,yuquanshan/customizedMesos,Gilbert88/mesos,reneploetz/mesos,craimbert/mesos,Gilbert88/mesos,yuquanshan/customizedMesos,kaysoky/mesos,gsantovena/mesos,yuquanshan/customizedMesos,andschwa/mesos,Gilbert88/mesos,asamerh4/mesos,asamerh4/mesos,asamerh4/mesos,dforsyth/mesos,kaysoky/mesos,gsantovena/mesos,gsantovena/mesos,Gilbert88/mesos,verizonlabs/mesos,neilconway/mesos,kaysoky/mesos