Change launchMode to singleInstance.
Just one instance of the app should be running.
Read intent on startup.
The app wasn't reading the intent on startup so it didn't know if it was
started from the notification.
Make dialogs cancelable.
This is necessary as sometimes goo.im hangs for a while and we cannot
close the dialogs.
Merge remote-tracking branch 'upstream/master' into HEAD