Core: re-apply missing fix for keepalive sessions

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Mimetype: replace bsearch by red-black-tree (50% improvement)

The mime types lookup algorithm was using a qsort()ed array plus a
binary search with two main arrays: a top ten list (common) and another
one for the rest.

Even the solution was optimal for some cases, it have a huge dependency
of a righ configuration of the top ten list, and considering the support
of virtual host and different types of content we need a more generic
solution that scale and optimize for all cases.

This patch deprecate the top-ten list and replace the binary search by a
red-black-tree solution, looking at the results after a benchmark we can
see the following:

                       +-----------+-----------------+--------+
                       | bsearch   | red-black-tree  |   gain |
 +---------------------+-----------+-----------------+--------+
 |  mk_mimetype_find   |   11.54   |           5.82  |   ~50% |
 +---------------------+-----------+-----------------+--------+

More graphical details here:

 http://edsiper.linuxchile.cl/mimetype_performance_improvement_001.png

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
HTML: refactor index page with Bootstrap 3

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Core: upgrade red-black-tree implementation to the latest on Linux Kernel

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
HTML: image logo scaled

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
HTML: little style changes

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Debian: update changelog

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Mimetype: use also linked list and adapt mk_lib

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Configure: add new htdocs/ files

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Move roadmap to v1.4

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Mimetype: fix linking to global linked list head

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Socket: on IP format error, use errno code number

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Red-Black-Tree: remove unused augmented function

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
API: Expose mimetype_lookup()

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Response: new http_content_type() method.

This new method allows to set the content_type response based in a
mimetype extension lookup againts the server mime's database. e.g:

   response->http_content_type(dr, "jpg");

the HTTP response will append the following to the response
HTTP headers:

   Content-Type: image/jpeg

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
API Object: internal rename from 'api' to 'dapi'

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
API: fix package loader

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Debian: update changelog

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
HTML: update index page

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Monkey 1.3.0