Create documents

There's some code in here that will save an html view to a file, instead of rendering it. This will be handy when we want to save directory files to dropbox.