Initial version using libevent. Event dispatch is not properly working.
Added libev poller backend and libevent poller backend. Let the fight begin.
Compiles on freebsd. Almost all changes was change from malloc.h to stdlib.h. Also some strdupa changed to plain strdup (need memory leak revision, only at otemplate) and heap allocation and strcpy. Some parts are disabled as could not make work them. Used libev by default.
Added multithread support to libev and libevent backends via a simple semaphore. Stop does not work.
Merge branch 'libevent' into freebsd

Conflicts:
	src/onion/poller_libev.c
Merge branch 'master' into libevent
Improved poller selection, added more doc on tweak options, and use cache. Fix libev compilation on F18.
Merge branch 'libevent' into freebsd

Conflicts:
	CMakeLists.txt
Fixed CMakeLists.txt.
Fixed otemplate not compiling templates properly.
Fixed use of otemplate and tempalte tags on freebsd. Needed special linker flag. Also fixed compile with libev library.
Fixed clang compilation problems. All of them proper bugs/typos, that GCC just let go (no bad side effects).
Fixed bug with delayed headers and big message payloads. Added initial webdav test (fails).
Some fixes to byte sending added. Better keep-alive.
Fixed webdav problem when not at root url.
Fixes to webdav when using it in a subpath. Works with wdfs.
Merge branch 'master' of github.com:davidmoreno/onion
Small fixes to tests.
Fix ensure sends data after executing handlers.
Merge remote-tracking branch 'origin/freebsd'

Conflicts:
	tests/01-internal/15-post-no-type.c
	tests/CMakeLists.txt
	tools/common/updateassets.c