Added support for the /stash/publish endpoint.
Added partial support for the /stash/submit endpoint.