Implemented adding permissions to manifest file.
Created permissionsAddAutomatically settingsKey in order to configure automatic permission adding (default: true).