Configure: options to set PolarSSL specifics.

This patch add 3 options to the configure script:

  --polarssl-headers       Path to PolarSSL headers
  --polarssl-library       Path to PolarSSL library
  --polarssl-debug-level   Set PolarSSL debug level (not implemented)

the first two aims to make things easier when using a custom or
compiled from scratch version of PolarSSL library.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Structure: move headers to different location

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Mimetype: add SVG types (fix #153)

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Core: change name in banner

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Signal: restore handler for SIGPIPE.

This problem was introduced on commit 84fa79eb. Without the SIGPIPE handler
the server will stop working when the Kernel trigger a SIGPIPE because of a
remote socket disconnection.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
HTTP: If-Modified-Since now allow clients from the future.

Before this patch the server did not respect a conditional
If-Modified-Since if the value was higher than the system server
date. This patch makes this pass, not a bug but make it more
friendly with Checker tools.

This patch also fix a QA script involved.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
HTTP: on using API sendfile, check EAGAIN

Some plugins may not be too efficient to buffer outgoing data
and when implementing the sendfile callback on some cases it will
need to re-call the routine until the Kernel enqueue the data.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Structure: adjust configure script and mklib

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Mimetype: add SVG types (fix #153)

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Core: change name in banner

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Signal: restore handler for SIGPIPE.

This problem was introduced on commit 84fa79eb. Without the SIGPIPE handler
the server will stop working when the Kernel trigger a SIGPIPE because of a
remote socket disconnection.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
HTTP: If-Modified-Since now allow clients from the future.

Before this patch the server did not respect a conditional
If-Modified-Since if the value was higher than the system server
date. This patch makes this pass, not a bug but make it more
friendly with Checker tools.

This patch also fix a QA script involved.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
HTTP: on using API sendfile, check EAGAIN

Some plugins may not be too efficient to buffer outgoing data
and when implementing the sendfile callback on some cases it will
need to re-call the routine until the Kernel enqueue the data.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Merge branch 'master' of github.com:monkey/monkey
Configure: build path fixes

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Proxy Reverse: fix API header

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
API: fix included headers

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Structure: add missing headers

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Header: add missing monkey.h

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Configure: adjust main Makefile

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