Allow for uploading directories

Additionally, add a sane .gitignore and remove an unused configuration parameter.