Fix custom workflow calls

Changed RestController:updateDocumentAction to pass in the $subject variable to create PHP's RestService, so that it may act upon custom workflows.