selected account: save and restore

This commit save user chosen account in NSUserDefaults and restore
it on launch. If account is not saved then try to find registered
RING account, if it is not available search for SIP account.

Change-Id: I15294e163b4a69247532bf46dd2c115a7c7c4add
Reviewed-by: Alexandre Lision <alexandre.lision@savoirfairelinux.com>
diff --git a/src/main.mm b/src/main.mm
index f13b563..99ed8ec 100644
--- a/src/main.mm
+++ b/src/main.mm
@@ -40,6 +40,7 @@
 
 #import "backends/AddressBookBackend.h"
 #import "delegates/ImageManipulationDelegate.h"
+#import "AccountSelectionManager.h"
 
 int main(int argc, const char *argv[]) {
 
@@ -66,6 +67,8 @@
         }
     }
 
+    AccountSelectionManager* manager = [[AccountSelectionManager alloc] init];
+    manager.selectChosenAccount;
     CallModel::instance();
     CategorizedHistoryModel::instance().addCollection<LocalHistoryCollection>(LoadOptions::FORCE_ENABLED);