API: export je_mallctl when JEMALLOC_STATS is set

Signed-off-by: Eduardo Silva <eduardo@monkey.io>

Conflicts:
	include/monkey/mk_plugin.h
Header: when using Chunked encoding, do not set Content-Length

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Merge pull request #168 from ksonny/master

Multiple listen sockets support
README: updates

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Core: fix API usage on new Listeners mode and small changes

A new feature for multiple listeners was added but it did not follow
the Monkey pattern internals, this patch perform the following changes:

 - Listeners are not longer a linked list, instead a mk_list.
 - Memory allocations/deallocations now use mk_mem_*() family.
 - Renamed concepts of 'listen' to 'listener' and 'listeners'.
 - Small function to register a new listener.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Lib: fix API for new Listener stuff

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Cheetah: fix API usage on Listeners

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
PolarSSL: fix data type

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Logger: fix API usage for new Listeners

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Config: do not free resources after load a Listener

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Config: skip duplicated listeners

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Epoll: initialize event struct for listener

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Epoll: make listener set EPOLLRDHUP

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Config: duplicate Listener value buffers for safe free

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Cheetah: print mem allocator and little tweaks

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Config: export listener_add so the lib can use it

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
API: export str_char_search()

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Configure: enable check for libkqueue (linux emulation)

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Event: preparing event handlers & basic epoll

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Event: initialize global event states table

Signed-off-by: Eduardo Silva <eduardo@monkey.io>