Add signal handler for ruby socket cleanup on shutdown
Closes https://gitlab.com/gitlab-org/gitaly/issues/490
Catch SIGTERM (runit, Omnibus) and SIGINT (foreman, GDK).
Fixes rubyserver cleanup so that the socket directory in /tmp is removed.
Edited by Jacob Vosmaer (GitLab)