Move unique check to addMessage

Trying to fix #22. This ensures that checks happen right before
addition, so there’s no way to have multiple notifications with the
same content.
Updating generated files

grunt build
Fixed merge conflicts
fixed code style
Merge branch 'soumya92-master'