clean output.c a little

Signed-off-by: Andy Green <andy.green@linaro.org>
truncated send keep and grow truncation buffer

Also change from looking at wsi->truncated_send_malloc to see if we are in the middle of
dealing with a truncated send to looking for nonzero wsi->truncated_send_len

Signed-off-by: Andy Green <andy.green@linaro.org>
ssl add SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER to server and client

gaby64 at githib found this option is necessary when using SSL with the
truncated send support

Signed-off-by: Andy Green <andy.green@linaro.org>
ssl output handle want read write

Signed-off-by: Andy Green <andy.green@linaro.org>
trac 58 ssl enable SNI per vhost certs

http://libwebsockets.org/trac/libwebsockets/ticket/58#no1
libev port

merged by andy@warmcat.com via https://github.com/gaby64/libwebsockets-libev

To use, you need to both

 - cmake ---> -DLWS_USE_LIBEV=1

 - info->options must have LWS_SERVER_OPTION_LIBEV set when creating the context

this is so a single library can be built for distros to support apps that use
normal polling and apps that use libev polling.
fix NO_EXTENSIONS

reported by gaby64
https://github.com/warmcat/libwebsockets/issues/89#issuecomment-38375684

Signed-off-by: Andy Green <andy.green@linaro.org>