Added better error checking and HTTP response codes to serviceDocumentAction().
Continued work on createSubmissionAction.