cryptohome: Added permissions check for chaps

InsertPkcs11Token in Mount.cc now logs a warning if the chaps directory already exists and has incorrect permissions.
This permissions check is necessary to ensure the insert Pkcs11 token process correctly executes.

BUG=chromium-os:28291
TEST=Wrote 4 simple unit tests. Ran smokescreen, bvt, Pkcs11InitOnLogin and Pkcs11UnderErrors

Change-Id: I4584453210196f467ac62271575e3dc7c8c535ef
Reviewed-on: https://gerrit.chromium.org/gerrit/21828
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Ready: Simran Basi <sbasi@google.com>
Tested-by: Simran Basi <sbasi@google.com>
4 files changed