Added basic upload capability, split index.html into templates.
Woah! CouchDB!