Fix typo : events instead of evets
fix a few trivial documentation typos
Fix event_dlist definition when sys/queue not included

This header adds TAILQ_HEAD and TAILQ_ENTRY if sys/queue is not included.
There is a similar macro that adds LIST_ENTRY but not LIST_HEAD, even though
LIST_HEAD is used later.

This change pulls in the correct definition (swiped from sys/queue) for
LIST_HEAD and cleans up the one spot where it is used.  The change can be
tested by adding

	#undef LIST_HEAD
	#undef LIST_ENTRY

right before the #ifndef checks and removing

	#define EVENT_DEFINED_LISTENTRY_
	#define EVENT_DEFINED_LISTHEAD_

so that the macros persist later.
preserve errno in evhttp_connection_fail_ for inspection by the callback
Free dangling event_once objects on event_base_free()

This patch makes us keep event_once objects in a doubly linked list
so we can free any once that haven't triggered when we call
event_base_free().
Merge branch '21_event_cleanup_v3'
Add a unit test in which an event is created with event_base_once() but never fires
Make rpcgen_wrapper.sh work on systems without a "python2" binary
Merge remote-tracking branch 'origin/patches-2.0'

Conflicts:
	test/rpcgen_wrapper.sh
Merge pull request #27 from pallas/master

Fix event_dlist definition when sys/queue not included
remove stray 'x' so print_err will compile when uncommented
Merge remote-tracking branch 'origin/patches-2.0'
Use correct openssl libs and includes in pkgconfig file

Previously we were saying -lssl -lcrypto unconditionally when
we should have been saying OPENSSL_LIBS.

Based on a patch from Patrick Pelletier
Merge remote-tracking branch 'ppelleti/tiny-doc-typos'
Merge remote-tracking branch 'azat/fix-typo-evets'
ignore LWS after field-content in headers
Clean up rtrim implementation

If I understand the C standard correctly, you can't actually point
at a position immediately _before_ the start of an object; only at the
position immediately after.

According to J.2 in the standard, in its big list of undefined behavior:

 "The behavior is undefined in the following circumstances:
     ...
   — Addition or subtraction of a pointer into, or just beyond, an
    array object and an integer type produces a result that does not
    point into, or just beyond, the same array object (6.5.6)."

So we've got to fix rtrim to not do that.  Also, make it unit tested,
and give it an evutil_*_ name.
Remove trailing tabs in HTTP headers as well.
Remove internal ws from multiline http headers correctly

According to RFC2616:

   All linear white space, including folding, has the same semantics
   as SP. A recipient MAY replace any linear white space with a single
   SP before interpreting the field value or forwarding the message
   downstream.
Move evutil_rtrim_lws_ to evutil.c where it belongs