moved signal handler from core to http api
now allocated memory for running the socket stuff is freed on termination signal
removed proxy.c and proxy.http.c because it is now legacy code