for #1290  tried to add another template
for #1122 yo angular generator
Revert "for #1290  tried to add another template"

This reverts commit d814d689149d49b0225f5d4233e766c5ad315f51.
for #1290 added a route for yale template
for #1290 added comments for templates, and copy pasted the full template as the yale template but cant find where newFieldPreferences2 comes from so app is broken
sideeffect of #1292 testing users cant see thier corpus permissions
fixes #1293 added quotes around values
for #1290 made it so that users will be able to use the new template (or any new template) TODO have to move the default preferences into the settings controller or something... for now added a global so we can deliver the template this weekend :(
for #1290 need a dropdown directive for each template so that the field gets selected from the appropriate template
for #1122 renamed the selectDropdown1 and selectDropdown2 to select field from x template
for #1290 copied full template to the yale field methods template as a starting point
fixes #1122 added field numbers for the yale template, appears to work. now to ensure the fields come from the corpus in #1291 ...
for #1291 using the actual corpus doc, not only its pouchname title and gravatar. this way we can use the datumFields that the corpus team has specified, with its help conventions and maybe even let the users change the title, people have been asking about how to change the title... #1259
for #1291 only storeing the pouchname in the preferences so that the corpus details are not stale, since the page loads the corpus doc everytime anyway... might as wel use the the fresh info in case someoen has modified the corpus fields
for #1123 #1154 #1189 #1183 we thought we fixed the enteredByUser and ability to use custom fields in the templates but we only updated the update part of the save, not the create part of the save. so as part of #1122 we moved the save spreadsheetDatum into a new service so that its all in one place, and no need to copy paste.
for #1123 #1154 #1189 #1183 and #1122 moved the conversion of feildDB data and spreadsheet data into a seperate file so that we can be sure that datum are always converted the same way
reducing dupliacted code by combining new and updated couchdocs into one function for #1122
for #1123 #1154 #1189 #1183 and #1122 added saving with error handleing and an array of promises tested with lost sesion token, offline and lost writer role all alert the user correctly now to retest to see if #1283 is finished
using double quotes
fixes #1291 if the currently loaded corpus has a default template, use that despite the user's preferences this will help field methods instructors ensure that all the students are on the 'same page'