Update background.js

Changes to file in order to bring notifications up to rich text and away from the depreciated methods.  Changed formatting to be more consistent.  Modified notification to be capable of displaying more than just mail.  Added some functionality to the notification object in order to accommodate future use.  Used existing class style to extend functionality.  This does not address any other issue than the notifications, though the entire file has been tweaked because of the formatting.