Various changed.

Changed the data model class to be a type[] rather than a type containing an []

Started to record various attributes about the messages received.
Bug fixes.
Sorted out saving device key and notifying of change.
Working for now.
Background push seems to be working.