Mimetype: if cannot read config file, abort properly

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Core: minor config checks and CGI api fix

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Config: add empty file on plugins dir

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Config: fail on zero keys just if a section exists

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
CGI: use API memory wrapper instead of direct free()

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
CGI: use memory wrapper on requests handler

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Cheetah: use memory wrapper instead of direct malloc/free calls

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Mimetypes: add debian package entry

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Trace: color tweaks and reduce va_args arguments

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Plugin API: export epoll_state calls

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Events: remove unnecessary handlers

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Error Handling: new macros mk_libc_error() and mk_libc_warning()

This patch adds two new functions and proper macros to handle common
'errno' errors and format them to stdout.

The new static inline functions are located in src/include/utils.h:

   mk_utils_libc_error(char *file, int line);
   mk_utils_libc_warning(char *file, int line);

the wrappers (based on macros) to be use are:

   mk_libc_error();
   mk_libc_warning();

when used the following information is formatted to stdout: errno number,
errno message, file and line.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Error Handling: add caller name

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Core: deprecate perror(), use mk_libc_xxx() wrappers

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