MODE-2182 Added 2 methods to the REST service which allow uploading binaries under a [nt:folder]/[nt:file] hierarchy, creating the hierarchy if it doesn't exist.

One method uses the `InputStream` of the request to retrieve the binary data the other uses a form-multipart approach.