added support for creating directories and removing files

also made it so that when uploading files, paths are specified relative
to base dir, so files can be placed anywhere, not just base documents
directory