update templates to include all plugins for 2.9.1
diff --git a/wp7/template/CordovaWP7AppProj.csproj b/wp7/template/CordovaWP7AppProj.csproj
index a4402da..8f30f7e 100644
--- a/wp7/template/CordovaWP7AppProj.csproj
+++ b/wp7/template/CordovaWP7AppProj.csproj
@@ -95,17 +95,48 @@
     </Compile>
     <Compile Include="cordovalib\DOMStorageHelper.cs" />
     <Compile Include="cordovalib\IBrowserDecorator.cs" />
-    <Compile Include="cordovalib\ImageExifHelper.cs" />
     <Compile Include="cordovalib\JSON\JsonHelper.cs" />
     <Compile Include="cordovalib\NativeExecution.cs" />
     <Compile Include="cordovalib\OrientationHelper.cs" />
     <Compile Include="cordovalib\PluginResult.cs" />
     <Compile Include="cordovalib\ScriptCallback.cs" />
     <Compile Include="cordovalib\XHRHelper.cs" />
-    <Compile Include="cordovalib\MimeTypeMapper.cs" />
     <Compile Include="MainPage.xaml.cs">
       <DependentUpon>MainPage.xaml</DependentUpon>
     </Compile>
+    <Compile Include="Plugins\Accelerometer.cs" />
+    <Compile Include="Plugins\AudioFormatsHelper.cs" />
+    <Compile Include="Plugins\AudioPlayer.cs" />
+    <Compile Include="Plugins\Battery.cs" />
+    <Compile Include="Plugins\Camera.cs" />
+    <Compile Include="Plugins\Capture.cs" />
+    <Compile Include="Plugins\Compass.cs" />
+    <Compile Include="Plugins\Contacts.cs" />
+    <Compile Include="Plugins\Device.cs" />
+    <Compile Include="Plugins\File.cs" />
+    <Compile Include="Plugins\FileTransfer.cs" />
+    <Compile Include="Plugins\GeoLocation.cs" />
+    <Compile Include="Plugins\Globalization.cs" />
+    <Compile Include="Plugins\ImageExifHelper.cs" />
+    <Compile Include="Plugins\InAppBrowser.cs" />
+    <Compile Include="Plugins\Media.cs" />
+    <Compile Include="Plugins\MimeTypeMapper.cs" />
+    <Compile Include="Plugins\NetworkStatus.cs" />
+    <Compile Include="Plugins\Notification.cs" />
+    <Compile Include="Plugins\UI\AudioCaptureTask.cs" />
+    <Compile Include="Plugins\UI\AudioRecorder.xaml.cs">
+      <DependentUpon>AudioRecorder.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Plugins\UI\ImageCapture.xaml.cs">
+      <DependentUpon>ImageCapture.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Plugins\UI\NotificationBox.xaml.cs">
+      <DependentUpon>NotificationBox.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Plugins\UI\VideoCaptureTask.cs" />
+    <Compile Include="Plugins\UI\VideoRecorder.xaml.cs">
+      <DependentUpon>VideoRecorder.xaml</DependentUpon>
+    </Compile>
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <ItemGroup>
@@ -121,6 +152,22 @@
       <Generator>MSBuild:Compile</Generator>
       <SubType>Designer</SubType>
     </Page>
+    <Page Include="Plugins\UI\AudioRecorder.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Page Include="Plugins\UI\ImageCapture.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Page Include="Plugins\UI\NotificationBox.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Page Include="Plugins\UI\VideoRecorder.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
   </ItemGroup>
   <ItemGroup>
     <Content Include="config.xml" />
diff --git a/wp7/template/MyTemplate.vstemplate b/wp7/template/MyTemplate.vstemplate
index 4d76502..b5e66f0 100644
--- a/wp7/template/MyTemplate.vstemplate
+++ b/wp7/template/MyTemplate.vstemplate
@@ -1,13 +1,13 @@
 <VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
 	<TemplateData>
-		<Name>CordovaWP7_3_0_0dev</Name>
-		<Description>Starter project for building a Cordova app for Windows Phone version: 3.1.0-rc1</Description>
+		<Name>CordovaWP7_2_9_1</Name>
+		<Description>Starter project for building a Cordova app for Windows Phone 7.5 version: 2.9.1</Description>
 		<ProjectType>CSharp</ProjectType>
 		<ProjectSubType>
 		</ProjectSubType>
 		<SortOrder>1000</SortOrder>
 		<CreateNewFolder>true</CreateNewFolder>
-		<DefaultName>CordovaWP7_3_0_0dev_</DefaultName>
+		<DefaultName>CordovaWP7_2_9_1_</DefaultName>
 		<ProvideDefaultName>true</ProvideDefaultName>
 		<LocationField>Enabled</LocationField>
 		<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
@@ -55,10 +55,7 @@
 				<ProjectItem ReplaceParameters="true" TargetFileName="CordovaView.xaml">CordovaView.xaml</ProjectItem>
 				<ProjectItem ReplaceParameters="true" TargetFileName="CordovaView.xaml.cs">CordovaView.xaml.cs</ProjectItem>
 				<ProjectItem ReplaceParameters="true" TargetFileName="DOMStorageHelper.cs">DOMStorageHelper.cs</ProjectItem>
-				<ProjectItem ReplaceParameters="true" TargetFileName="DOMStorageProxy.cs">DOMStorageProxy.cs</ProjectItem>
 				<ProjectItem ReplaceParameters="true" TargetFileName="IBrowserDecorator.cs">IBrowserDecorator.cs</ProjectItem>
-				<ProjectItem ReplaceParameters="true" TargetFileName="ImageExifHelper.cs">ImageExifHelper.cs</ProjectItem>
-				<ProjectItem ReplaceParameters="true" TargetFileName="MimeTypeMapper.cs">MimeTypeMapper.cs</ProjectItem>
 				<ProjectItem ReplaceParameters="true" TargetFileName="NativeExecution.cs">NativeExecution.cs</ProjectItem>
 				<ProjectItem ReplaceParameters="true" TargetFileName="OrientationHelper.cs">OrientationHelper.cs</ProjectItem>
 				<ProjectItem ReplaceParameters="true" TargetFileName="PluginResult.cs">PluginResult.cs</ProjectItem>
@@ -97,6 +94,39 @@
 					<ProjectItem ReplaceParameters="true" TargetFileName="index.js">index.js</ProjectItem>
 				</Folder>
 			</Folder>
+			<Folder Name="Plugins" TargetFolderName="Plugins">
+				<ProjectItem ReplaceParameters="true" TargetFileName="Accelerometer.cs">Accelerometer.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="AudioFormatsHelper.cs">AudioFormatsHelper.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="AudioPlayer.cs">AudioPlayer.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Battery.cs">Battery.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Camera.cs">Camera.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Capture.cs">Capture.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Compass.cs">Compass.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Contacts.cs">Contacts.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Device.cs">Device.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="File.cs">File.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="FileTransfer.cs">FileTransfer.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="GeoLocation.cs">GeoLocation.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Globalization.cs">Globalization.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="ImageExifHelper.cs">ImageExifHelper.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="InAppBrowser.cs">InAppBrowser.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Media.cs">Media.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="MimeTypeMapper.cs">MimeTypeMapper.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="NetworkStatus.cs">NetworkStatus.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Notification.cs">Notification.cs</ProjectItem>
+				<Folder Name="UI" TargetFolderName="UI">
+					<ProjectItem ReplaceParameters="true" TargetFileName="AudioCaptureTask.cs">AudioCaptureTask.cs</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="AudioRecorder.xaml">AudioRecorder.xaml</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="AudioRecorder.xaml.cs">AudioRecorder.xaml.cs</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="ImageCapture.xaml">ImageCapture.xaml</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="ImageCapture.xaml.cs">ImageCapture.xaml.cs</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="NotificationBox.xaml">NotificationBox.xaml</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="NotificationBox.xaml.cs">NotificationBox.xaml.cs</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="VideoCaptureTask.cs">VideoCaptureTask.cs</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="VideoRecorder.xaml">VideoRecorder.xaml</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="VideoRecorder.xaml.cs">VideoRecorder.xaml.cs</ProjectItem>
+				</Folder>
+			</Folder>
 		</Project>
 	</TemplateContent>
 </VSTemplate>
diff --git a/wp7/template/config.xml b/wp7/template/config.xml
index 57cadf6..fd3a63f 100644
--- a/wp7/template/config.xml
+++ b/wp7/template/config.xml
@@ -21,4 +21,52 @@
 -->
 <widget>
     <access origin="*"/>
+
+    <features>
+        <feature name="Device">
+            <param name="wp-package" value="Device" onload="false"/>
+        </feature>
+        <feature name="Compass">
+            <param name="wp-package" value="Compass" />
+        </feature>
+        <feature name="Accelerometer">
+            <param name="wp-package" value="Accelerometer"/>
+        </feature>
+        <feature name="Camera">
+            <param name="wp-package" value="Camera"/>
+        </feature>
+        <feature name="NetworkStatus">
+            <param name="wp-package" value="NetworkStatus"/>
+        </feature>
+        <feature name="Contacts">
+            <param name="wp-package" value="Contacts"/>
+        </feature>
+        <feature name="File">
+            <param name="wp-package" value="File"/>
+        </feature>
+        <feature name="FileTransfer">
+            <param name="wp-package" value="FileTransfer"/>
+        </feature>
+        <feature name="Geolocation">
+            <param name="wp-package" value="Geolocation"/>
+        </feature>
+        <feature name="Media">
+            <param name="wp-package" value="Media"/>
+        </feature>
+        <feature name="Capture">
+            <param name="wp-package" value="Capture"/>
+        </feature>
+        <feature name="Battery">
+            <param name="wp-package" value="Battery"/>
+        </feature>
+        <feature name="Globalization">
+            <param name="wp-package" value="Globalization"/>
+        </feature>
+        <feature name="InAppBrowser">
+            <param name="wp-package" value="InAppBrowser"/>
+        </feature>
+        <feature name="Notification">
+            <param name="wp-package" value="Notification"/>
+        </feature>
+    </features>
 </widget>
diff --git a/wp7/template/cordovalib/DOMStorageProxy.cs b/wp7/template/cordovalib/DOMStorageProxy.cs
deleted file mode 100644
index 59ca4e6..0000000
--- a/wp7/template/cordovalib/DOMStorageProxy.cs
+++ /dev/null
@@ -1,155 +0,0 @@
-using Microsoft.Phone.Controls;
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace WPCordovaClassLib.CordovaLib
-{
-    class DOMStorageProxy
-    {
-        private WebBrowser webBrowser;
-
-        public DOMStorageProxy(ref WebBrowser browser) 
-        {
-            this.webBrowser = browser;
-            browser.ScriptNotify += browser_ScriptNotify;
-        }
-
-        public void InjectScript()
-        {
-              var script = @"(function(win, doc) {
-var docDomain = null;
-try {
-    docDomain = doc.domain;
-} catch (err) {}
-
-if (!docDomain || docDomain.length === 0) {
-    var DOMStorage = function(type) {
-        if (type == 'sessionStorage') {
-            this._type = type;
-        }
-        Object.defineProperty(this, 'length', {
-            configurable: true,
-            get: function() {
-                return this.getLength();
-            }
-        });
-    };
-    DOMStorage.prototype = {
-        _type: 'localStorage',
-        _result: null,
-        keys: null,
-        onResult: function(key, valueStr) {
-            if (!this.keys) {
-                this.keys = [];
-            }
-            this._result = valueStr;
-        },
-        onKeysChanged: function(jsonKeys) {
-            this.keys = JSON.parse(jsonKeys);
-            var key;
-            for (var n = 0, len = this.keys.length; n < len; n++) {
-                key = this.keys[n];
-                if (!this.hasOwnProperty(key)) {
-                    Object.defineProperty(this, key, {
-                        configurable: true,
-                        get: function() {
-                            return this.getItem(key);
-                        },
-                        set: function(val) {
-                            return this.setItem(key, val);
-                        }
-                    });
-                }
-            }
-        },
-        initialize: function() {
-            window.external.Notify('DOMStorage/' + this._type + '/load/keys');
-        },
-        getLength: function() {
-            if (!this.keys) {
-                this.initialize();
-            }
-            return this.keys.length;
-        },
-        key: function(n) {
-            if (!this.keys) {
-                this.initialize();
-            }
-            if (n >= this.keys.length) {
-                return null;
-            } else {
-                return this.keys[n];
-            }
-        },
-        getItem: function(key) {
-            if (!this.keys) {
-                this.initialize();
-            }
-            var retVal = null;
-            if (this.keys.indexOf(key) > -1) {
-                window.external.Notify('DOMStorage/' + this._type + '/get/' + key);
-                retVal = window.unescape(decodeURIComponent(this._result));
-                this._result = null;
-            }
-            return retVal;
-        },
-        setItem: function(key, value) {
-            if (!this.keys) {
-                this.initialize();
-            }
-            window.external.Notify('DOMStorage/' + this._type + '/set/' + key + '/' + encodeURIComponent(window.escape(value)));
-        },
-        removeItem: function(key) {
-            if (!this.keys) {
-                this.initialize();
-            }
-            var index = this.keys.indexOf(key);
-            if (index > -1) {
-                this.keys.splice(index, 1);
-                window.external.Notify('DOMStorage/' + this._type + '/remove/' + key);
-                delete this[key];
-            }
-        },
-        clear: function() {
-            if (!this.keys) {
-                this.initialize();
-            }
-            for (var n = 0, len = this.keys.length; n < len; n++) {
-                delete this[this.keys[n]];
-            }
-            this.keys = [];
-            window.external.Notify('DOMStorage/' + this._type + '/clear/');
-        }
-    };
-    if (typeof window.localStorage === 'undefined') {
-        Object.defineProperty(window, 'localStorage', {
-            writable: false,
-            configurable: false,
-            value: new DOMStorage('localStorage')
-        });
-        window.localStorage.initialize();
-    }
-    if (typeof window.sessionStorage === 'undefined') {
-        Object.defineProperty(window, 'sessionStorage', {
-            writable: false,
-            configurable: false,
-            value: new DOMStorage('sessionStorage')
-        });
-        window.sessionStorage.initialize();
-    }
-}
-})(window, document);";
-
-              webBrowser.InvokeScript("execScript", new string[] { script });
-
-        }
-
-        void browser_ScriptNotify(object sender, NotifyEventArgs e)
-        {
-            
-        }
-    }
-}
diff --git a/wp8/template/CordovaWP8AppProj.csproj b/wp8/template/CordovaWP8AppProj.csproj
index 960db28..ffaf53b 100644
--- a/wp8/template/CordovaWP8AppProj.csproj
+++ b/wp8/template/CordovaWP8AppProj.csproj
@@ -134,8 +134,6 @@
       <DependentUpon>CordovaView.xaml</DependentUpon>
     </Compile>
     <Compile Include="cordovalib\IBrowserDecorator.cs" />
-    <Compile Include="cordovalib\ImageExifHelper.cs" />
-    <Compile Include="cordovalib\MimeTypeMapper.cs" />
     <Compile Include="cordovalib\NativeExecution.cs" />
     <Compile Include="cordovalib\OrientationHelper.cs" />
     <Compile Include="cordovalib\PluginResult.cs" />
@@ -144,6 +142,39 @@
     <Compile Include="MainPage.xaml.cs">
       <DependentUpon>MainPage.xaml</DependentUpon>
     </Compile>
+    <Compile Include="Plugins\Accelerometer.cs" />
+    <Compile Include="Plugins\AudioFormatsHelper.cs" />
+    <Compile Include="Plugins\AudioPlayer.cs" />
+    <Compile Include="Plugins\Battery.cs" />
+    <Compile Include="Plugins\Camera.cs" />
+    <Compile Include="Plugins\Capture.cs" />
+    <Compile Include="Plugins\Compass.cs" />
+    <Compile Include="Plugins\Contacts.cs" />
+    <Compile Include="Plugins\Device.cs" />
+    <Compile Include="Plugins\File.cs" />
+    <Compile Include="Plugins\FileTransfer.cs" />
+    <Compile Include="Plugins\GeoLocation.cs" />
+    <Compile Include="Plugins\Globalization.cs" />
+    <Compile Include="Plugins\ImageExifHelper.cs" />
+    <Compile Include="Plugins\InAppBrowser.cs" />
+    <Compile Include="Plugins\Media.cs" />
+    <Compile Include="Plugins\MimeTypeMapper.cs" />
+    <Compile Include="Plugins\NetworkStatus.cs" />
+    <Compile Include="Plugins\Notification.cs" />
+    <Compile Include="Plugins\UI\AudioCaptureTask.cs" />
+    <Compile Include="Plugins\UI\AudioRecorder.xaml.cs">
+      <DependentUpon>AudioRecorder.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Plugins\UI\ImageCapture.xaml.cs">
+      <DependentUpon>ImageCapture.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Plugins\UI\NotificationBox.xaml.cs">
+      <DependentUpon>NotificationBox.xaml</DependentUpon>
+    </Compile>
+    <Compile Include="Plugins\UI\VideoCaptureTask.cs" />
+    <Compile Include="Plugins\UI\VideoRecorder.xaml.cs">
+      <DependentUpon>VideoRecorder.xaml</DependentUpon>
+    </Compile>
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <ItemGroup>
@@ -159,6 +190,22 @@
       <SubType>Designer</SubType>
       <Generator>MSBuild:Compile</Generator>
     </Page>
+    <Page Include="Plugins\UI\AudioRecorder.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Page Include="Plugins\UI\ImageCapture.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Page Include="Plugins\UI\NotificationBox.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
+    <Page Include="Plugins\UI\VideoRecorder.xaml">
+      <Generator>MSBuild:Compile</Generator>
+      <SubType>Designer</SubType>
+    </Page>
   </ItemGroup>
   <ItemGroup>
     <Content Include="config.xml" />
@@ -212,6 +259,7 @@
   <ItemGroup>
     <Service Include="{508349B6-6B84-4DF5-91F0-309BEEBAD82D}" />
   </ItemGroup>
+  <ItemGroup />
   <Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).$(TargetFrameworkVersion).Overrides.targets" />
   <Import Project="$(MSBuildExtensionsPath)\Microsoft\$(TargetFrameworkIdentifier)\$(TargetFrameworkVersion)\Microsoft.$(TargetFrameworkIdentifier).CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it. 
diff --git a/wp8/template/MyTemplate.vstemplate b/wp8/template/MyTemplate.vstemplate
index e78e023..d4a1012 100644
--- a/wp8/template/MyTemplate.vstemplate
+++ b/wp8/template/MyTemplate.vstemplate
@@ -1,13 +1,13 @@
 <VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">
 	<TemplateData>
-		<Name>CordovaWP8_3_0_0dev</Name>
-		<Description>Starter project for building a Cordova app for Windows Phone 8 version: 3.1.0-rc1</Description>
+		<Name>CordovaWP8_2_9_1</Name>
+		<Description>Starter project for building a Cordova app for Windows Phone 8 version: 2.9.1</Description>
 		<ProjectType>CSharp</ProjectType>
 		<ProjectSubType>
 		</ProjectSubType>
 		<SortOrder>1000</SortOrder>
 		<CreateNewFolder>true</CreateNewFolder>
-		<DefaultName>CordovaWP8_3.0.0dev</DefaultName>
+		<DefaultName>CordovaWP8_2.9.1</DefaultName>
 		<ProvideDefaultName>true</ProvideDefaultName>
 		<LocationField>Enabled</LocationField>
 		<EnableLocationBrowseButton>true</EnableLocationBrowseButton>
@@ -56,8 +56,6 @@
 				<ProjectItem ReplaceParameters="true" TargetFileName="CordovaView.xaml">CordovaView.xaml</ProjectItem>
 				<ProjectItem ReplaceParameters="true" TargetFileName="CordovaView.xaml.cs">CordovaView.xaml.cs</ProjectItem>
 				<ProjectItem ReplaceParameters="true" TargetFileName="IBrowserDecorator.cs">IBrowserDecorator.cs</ProjectItem>
-				<ProjectItem ReplaceParameters="true" TargetFileName="ImageExifHelper.cs">ImageExifHelper.cs</ProjectItem>
-				<ProjectItem ReplaceParameters="true" TargetFileName="MimeTypeMapper.cs">MimeTypeMapper.cs</ProjectItem>
 				<ProjectItem ReplaceParameters="true" TargetFileName="NativeExecution.cs">NativeExecution.cs</ProjectItem>
 				<ProjectItem ReplaceParameters="true" TargetFileName="OrientationHelper.cs">OrientationHelper.cs</ProjectItem>
 				<ProjectItem ReplaceParameters="true" TargetFileName="PluginResult.cs">PluginResult.cs</ProjectItem>
@@ -95,6 +93,39 @@
 					<ProjectItem ReplaceParameters="true" TargetFileName="index.js">index.js</ProjectItem>
 				</Folder>
 			</Folder>
+			<Folder Name="Plugins" TargetFolderName="Plugins">
+				<ProjectItem ReplaceParameters="true" TargetFileName="Accelerometer.cs">Accelerometer.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="AudioFormatsHelper.cs">AudioFormatsHelper.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="AudioPlayer.cs">AudioPlayer.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Battery.cs">Battery.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Camera.cs">Camera.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Capture.cs">Capture.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Compass.cs">Compass.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Contacts.cs">Contacts.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Device.cs">Device.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="File.cs">File.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="FileTransfer.cs">FileTransfer.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="GeoLocation.cs">GeoLocation.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Globalization.cs">Globalization.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="ImageExifHelper.cs">ImageExifHelper.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="InAppBrowser.cs">InAppBrowser.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Media.cs">Media.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="MimeTypeMapper.cs">MimeTypeMapper.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="NetworkStatus.cs">NetworkStatus.cs</ProjectItem>
+				<ProjectItem ReplaceParameters="true" TargetFileName="Notification.cs">Notification.cs</ProjectItem>
+				<Folder Name="UI" TargetFolderName="UI">
+					<ProjectItem ReplaceParameters="true" TargetFileName="AudioCaptureTask.cs">AudioCaptureTask.cs</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="AudioRecorder.xaml">AudioRecorder.xaml</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="AudioRecorder.xaml.cs">AudioRecorder.xaml.cs</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="ImageCapture.xaml">ImageCapture.xaml</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="ImageCapture.xaml.cs">ImageCapture.xaml.cs</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="NotificationBox.xaml">NotificationBox.xaml</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="NotificationBox.xaml.cs">NotificationBox.xaml.cs</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="VideoCaptureTask.cs">VideoCaptureTask.cs</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="VideoRecorder.xaml">VideoRecorder.xaml</ProjectItem>
+					<ProjectItem ReplaceParameters="true" TargetFileName="VideoRecorder.xaml.cs">VideoRecorder.xaml.cs</ProjectItem>
+				</Folder>
+			</Folder>
 		</Project>
 	</TemplateContent>
 </VSTemplate>
diff --git a/wp8/template/config.xml b/wp8/template/config.xml
index 57cadf6..fd3a63f 100644
--- a/wp8/template/config.xml
+++ b/wp8/template/config.xml
@@ -21,4 +21,52 @@
 -->
 <widget>
     <access origin="*"/>
+
+    <features>
+        <feature name="Device">
+            <param name="wp-package" value="Device" onload="false"/>
+        </feature>
+        <feature name="Compass">
+            <param name="wp-package" value="Compass" />
+        </feature>
+        <feature name="Accelerometer">
+            <param name="wp-package" value="Accelerometer"/>
+        </feature>
+        <feature name="Camera">
+            <param name="wp-package" value="Camera"/>
+        </feature>
+        <feature name="NetworkStatus">
+            <param name="wp-package" value="NetworkStatus"/>
+        </feature>
+        <feature name="Contacts">
+            <param name="wp-package" value="Contacts"/>
+        </feature>
+        <feature name="File">
+            <param name="wp-package" value="File"/>
+        </feature>
+        <feature name="FileTransfer">
+            <param name="wp-package" value="FileTransfer"/>
+        </feature>
+        <feature name="Geolocation">
+            <param name="wp-package" value="Geolocation"/>
+        </feature>
+        <feature name="Media">
+            <param name="wp-package" value="Media"/>
+        </feature>
+        <feature name="Capture">
+            <param name="wp-package" value="Capture"/>
+        </feature>
+        <feature name="Battery">
+            <param name="wp-package" value="Battery"/>
+        </feature>
+        <feature name="Globalization">
+            <param name="wp-package" value="Globalization"/>
+        </feature>
+        <feature name="InAppBrowser">
+            <param name="wp-package" value="InAppBrowser"/>
+        </feature>
+        <feature name="Notification">
+            <param name="wp-package" value="Notification"/>
+        </feature>
+    </features>
 </widget>