Supporting graceful signal shutdown.

Adding a signal handler and gracefully shutting down all threads.
The current style in our codebase is that logs start with uppercase (all glog.* calls do this today) and all error types start with lowercase.

I'm fine changing that :) currently just keeping with the current style as is today.