Split some functions into smaller ones.
Fix exception handling in asciidoc2html.
Update commands.asciidoc.
Handle HTTP redirections in downloads.