YARN-2448. Changed ApplicationMasterProtocol to expose RM-recognized resource types to the AMs. Contributed by Varun Vasudev.

(cherry picked from commit b67d5ba7842cc10695d987f217027848a5a8c3d8)