html: allow multiline DOCTYPE declarations
fix CLI erroring on unknown options
properly parse cgi-style command-line opts