added foreground boolean
initially app is in foreground
do not add notification if application in foreground
Merge pull request #80 from edewit/foreground

added foreground boolean