Bump version of pre-commit hook after d38861f.

I didn't notice that we have versioning there.
Use AfxGetMainFrame() when it make sense.
Set custom new handler and throw standart exception.

This prevent handling out of memory exception internaly and allow us to
create minidump when it happens.

Revert "Properly catch a bad allocation exception."
commit 2a0d0c2d49032cad240147db0cb1f252358bc7b6.
MiniDump: Refactor the code.

- Remove custom hooking function. We have mhook for this purpouse.
- Remove CRT hack, it were disabled and doesn't work anyway.
- Include more info in minidumps.
- Allow to quickly create build with full memory dump by setting
  ENABLE_FULLDUMP to 1.
- Enable minidumps when our code starts and not during static
  initialization. We rely on our code during minidump creation anyway.
  And enabling it to soon could do more harm than good.
- Use MiniDumpWriteDump() directly it is avalible on all platforms that
  we support.
- Code simplification.
Prevent showing black bars when window size after scale exceed current work area.

Fixes #4937