SERVER-14079: Add signal handlers to shell

The shell currently lacks the signal handlers that mongod/mongos
have making it tough to investigate issues.

This change does the following
1. Add signal handlers to shell & tools.
2. Add invalid_parameter handler for Windows
3. Add better logging for pure call handler on Windows
4. Take dumps on terminate handler on Windows
5. Change shell to use common signal handlers
6. Remove some random dead code / commented lines.