Clean up preferences. Make preferences use Intents to update widgets and activities. Implement backup and restore of preferences. Implement real time update of group levels for C-Gate connections. Better handling of network state changes.