SERVER-13429 Use logging system in mongod signal handlers, test exit logging.

Still not really safe for signal handlers, but no worse than before,
and correctly logs to the log file/syslog, so an improvement.