test-server: fix to compile using mingw

Signed-off-by: Alejandro Mery <amery@geeks.cl>
context: unify libwebsocket_create_context()'s return

Signed-off-by: Alejandro Mery <amery@geeks.cl>
context: move libev specifics into a sub-struct

Signed-off-by: Alejandro Mery <amery@geeks.cl>
context: move poll/win32 specifics into a sub-struct

Signed-off-by: Alejandro Mery <amery@geeks.cl>
introduce info->event and info->e to select and configure a backend

Signed-off-by: Alejandro Mery <amery@geeks.cl>
introduce context->event_ops

Signed-off-by: Alejandro Mery <amery@geeks.cl>
libev: move loop setting and backend printing to event_ops->init()

Signed-off-by: Alejandro Mery <amery@geeks.cl>
alloc: make _lws_realloc static

Signed-off-by: Alejandro Mery <amery@geeks.cl>
Add dummy tracing support [DEBUG]

Signed-off-by: Alejandro Mery <amery@geeks.cl>
event: activate libev using info->event instead of LWS_SERVER_OPTION_LIBEV

compatiblity with LWS_SERVER_OPTION_LIBEV is preserved by turning the
flag into info->event = LWS_EVENT_LIBEV when creating the context.

Signed-off-by: Alejandro Mery <amery@geeks.cl>
Adapt test-server and test-client to use libev event backend when passing -e

Signed-off-by: Alejandro Mery <amery@geeks.cl>
libev: don't start sigint and accept watchers unless we are servers

Signed-off-by: Alejandro Mery <amery@geeks.cl>