Added PersistenceManager. Improvements to WifiReceiver.