<p>Added test for name collisions with uploaded profiles, including a warning and a prompt to allow the user to overwrite the existing profile with the same name.</p>

<p>To test:<br>
1) Upload a profile (for instance, "TEST") (must be valid profile)<br>
2) Change one value in the profile (but not the name). Example: ssid was "TEST", change it to "TESTover"<br>
3) Upload the profile again, you should be prompted with a warning and a set of options<br>
4) Click "No, I will rename the file and upload later", then "Confirm". Check the profile "TEST" in etc/commotion/profiles.d/ to confirm that the previous TEST profile was not overwritten<br>
5) Upload the profile again, click "Yes, please overwrite the existing profile". Check the profile in profiles.d/ to confirm that TEST was in fact overwritten with the new ssid value<br>
6) After clicking "confirm", you should see the default meshprofile page (no warning or overwrite options)</p>

<p>Serve chilled.</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/opentechinstitute/luci-commotion issue20</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/opentechinstitute/luci-commotion/pull/41'>https://github.com/opentechinstitute/luci-commotion/pull/41</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>moved uploaded mesh profiles to tmp before copying to /etc/commotion/profiles.d/ to allow name collision checking</li>
  <li>added check for name collisions with extant profiles in /etc/commotion/profiles.d/</li>
  <li>added warning to user when a name conflict occurs</li>
  <li>added 'radio' button to meshprofile.htm, which is called when passed the variable 'OW' (overwite) from meshprofile.lua</li>
  <li>added 'confirm' button. If the user clicks 'yes'->'confirm', the new profile will overwrite the existing one</li>
  <li>profile uploader now allows user to decline overwriting the existing profile</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>A</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/41/files#diff-0">luasrc/controller/commotion/.meshprofile.lua.swp</a>
    (0)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/41/files#diff-1">luasrc/controller/commotion/meshprofile.lua</a>
    (49)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/41/files#diff-2">luasrc/controller/commotion/meshprofile.lua~</a>
    (347)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/luci-commotion/pull/41/files#diff-3">luasrc/view/commotion/meshprofile.htm</a>
    (10)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/41.patch'>https://github.com/opentechinstitute/luci-commotion/pull/41.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/luci-commotion/pull/41.diff'>https://github.com/opentechinstitute/luci-commotion/pull/41.diff</a></li>
</ul>