#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.