Add completed flag to certificate generator
Set flag when generation is complete
Check generator flag is set to complete
Update API documentation
Merge branch 'feature-create-certificates-asynchronously' into staging