Added PermissionState, checkPermissions and requestPermissions base APIs to the core module, designed for plugin authors to extend.
PermissionState
checkPermissions
requestPermissions