Latest commit 573518b Aug 20, 2015 @jonashaag Fix #77: Don't abort running requests on ^C
The graceful shutdown is achieved by stopping the accept and signal
watchers. This way, we're not accepting any more clients and the main
loop ends as soon as all currently processed requests have been worked

This patch also ports the libev API calls from libev v3 to v4.