Added signal capture to properly close onion listening.
Added onion_ptr_list type, to store lists of pointers and later do something on them. Use it at request_parser to avoid a memory leak when doing urlencode POST.