Move files promise type-related functions from libpromises
Add missing include
Fix errorneous CF_SAME_GROUP used as uid_t
Fix ExecSanityChecks to properly set up default value of umask