Bug 912645: ability to indicate notification modes

This logic is a little hard to read. How about we do this, above letss have a local variable:
```
var behavior = detail.behavior || {};
```
And then, whenever we refer to behavior we can do something like:
```
if (!behavior.nolights && .....) {
```