Refs #7830 - Simplify release DOI generation.

Being defensive by using lexical_cast is not necessary, and is not even
done elsewhere in the file.
Refs #7830 - Use simpler test for cURL.
Refs #7830 - Improve deleting of DOI's.