http: use writev on chunked encoding

Now will process all write() that were done on a single tick in a single
writev().
domain: fix off-by-one in Domain.exit()

We want to clear the found domain and the domains after it.

Signed-off-by: Trevor Norris <trev.norris@gmail.com>