Added validation support to notifications (on/off) settings.

Added support for array of message objects with content and locale
properties.

Changed `lib.messages.getMessage`; if locale is not found in message
array then defaults to the first one.  It's better than not returning
any message.