[misc] Added API to the workflow to be able to start the workflow directly for a published document (mark a published document as being part of a workflow).
The script was also implemented for this function, so that forms can be made pointing to there and using the functionality.