Issue #2871886: Provide an API to programmatically validate and submit a webform submission. Improve validation.