Add Dir method.
Add first implementation of the flowjs protocol for uploading data. This
will also be used for the client uploader.