Update corpus_template.js

added copyright, license and terms of use areas. working on FieldDB issue #207
Merge pull request #15 from hisakonog/usercreationrefactor

Update corpus_template.js
#16 Now returning entire corpus template of newly created corpus to requesting app.
Merging conflicts; used updates from cesine.
#16 Unified create new docs code into functions in corpus.js.
#16 Now making private and public corpus documents from separate templates; bulk uploading all docs to couchdb.
moved session fields out of the corpus doc and used the ones from the session template so we dont have to copy paste them around. added toLowerCase on the server code in case calling apps send a mixed case string.
while cleaning up the dbConnection ambiguity i found a security flaw and turned off the updateroles API for now, @senhorzinho hope this doesnt affect the spreadsheet lauch too much.