Enhancements to Shadow Service.setForeground() and related methods.

This allows access to the foreground notification ID, sets the foreground
flag and registers the notification with NotificationManager.  Also added
convenience getNotification() method for the common case when the tag is
null.

Closes #1130.