Add a cache for the list of accounts.

Now the EmailActivity doesn't need to know about where the results
are coming from, but can get it from the AccoutnCacheProvider

Also, this CL has the start of the integration with the Gmail mail content
At app start up, the Gmail accounts are added to the cache of accounts.

Change-Id: Iffd91d42753f35b85720c9c0a6f0a5bb7be5c3e3
diff --git a/AndroidManifest.xml b/AndroidManifest.xml
index 64510ef..45d7dd9 100644
--- a/AndroidManifest.xml
+++ b/AndroidManifest.xml
@@ -19,6 +19,8 @@
     android:versionCode="1"
     android:versionName="1.0" >
 
+    <uses-permission android:name="android.permission.GET_ACCOUNTS" />
+
     <application
         android:icon="@mipmap/ic_launcher_mail"
         android:label="@string/app_name"
@@ -48,6 +50,30 @@
             android:name=".providers.protos.mock.MockUiProvider" >
             <grant-uri-permission android:pathPattern=".*" />
         </provider>
+
+        <provider
+            android:authorities="com.android.mail.accountcache"
+            android:label="@string/account_cache_provider"
+            android:multiprocess="false"
+            android:name=".providers.AccountCacheProvider" >
+            <grant-uri-permission android:pathPattern=".*" />
+        </provider>
+
+        <provider
+            android:authorities="com.android.mail.dummygmailprovider"
+            android:label="@string/dummy_gmail_provider"
+            android:multiprocess="false"
+            android:name=".providers.protos.gmail.DummyGmailProvider" >
+            <grant-uri-permission android:pathPattern=".*" />
+        </provider>
+
+        <receiver android:name=".providers.protos.gmail.GmailIntentReceiver">
+          <intent-filter>
+            <action android:name="com.android.email.providers.protos.gmail.intent.ACTION_PROVIDER_CREATED" />
+          </intent-filter>
+        </receiver>
+
+        <service android:name=".providers.protos.gmail.GmailIntentService"/>
     </application>
 
 </manifest>