Core: stage_30 returns CONTINUE

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
API: new fconf() object

this object add methods to handle configuration files in the
web service, the available methods are:

   const char *get_path();
   int set_path(const char *dir);
   char *read_file(const char *name);
   char *read_file_path(const char *dir);

also a new directive key named 'ConfDir' has been added as
optional inside the web service definition (web server virtual
host file)

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Console: new definition for web service messages (deprecate debug)

This patch implements a new interface called console/messages,
pretty similar to the old console/debug but it allow to each
running web service to have their own console file under the
/tmp/ directory with the new name:

      webservicename.duda.messages

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
QS: fix string comparison

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Websocket: trigger event callbacks only if they were defined

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Conf: fix validation over configuration directory

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
SQLite: fix memory allocation

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Core: fix race condition when initializing mk_pointers

Some mk_pointers were initialized into the thread context of the
plugin, this face a race condition. The proper way is to set
those values into the process context in _mkp_init()

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Core: move mk_pointers init to _mkp_prctx() hook

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
API: new 'worker' object

This new object aims to wrap and schedule the launch of posix
threads from duda_main(). Depending of the worker implemented this
can require some non-initialized functions/memory that are only
ready once duda_main() has finished.

In order to launch a thread from duda_main() use the following:

    worker->spawn(function_reference, argument);

For more details visit the API object documentation.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Worker: add missing object file to Makefile.in

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