Prevent server crash on signal SIGPIPE
First run the RocksDB, after http server. Destroyed in the reverse order.
Extracted object of event_base * for later use it for bind signals.
issue #2
Set signal handlers to safely shut down.
Issue #2
updated Makefile
Merge branch 'signals'
Some minor fixes