added dopen()/buflen() and optional options
emulating knetfile APIs
forgot to alias kurl_t to knetFile
forgot ";"
wrong dopen() interface
need to grow buffer

One multi_perform() frequently invokes multiple write_cb(). We have to use a
dynamic buffer. Hmm.. I really do not like the curl APIs, although I understand
why they are designed this way.