Added add, remove and get permission functions to PermissionsHandler.