Changed desktop notifications to support Firefox.

Pretty much everything of the notification handling was redone.
This is tested on Chromium version '32.0.1700.107 (248368)' and
Firefox version 29 and 27 under linux. More testing would be nice.
Merge pull request #291 from totokaka/desktop-notifications

Changed desktop notifications to support Firefox.