Added '%r' specifier for dyad_writef(), updated doc/api.md
Changed httpserv.c example to use '%r' format specifier