Optionally allow flags to be passed to pendingActivity/pendingService

Allows consuming code to set options such as
PendingIntent.FLAG_UPDATE_CURRENT