Adding getSentBroadcastIntents and getRegisteredBroadcastReceivers

fix for issue #1227