Add astyle functionality to pre-commit hook script

It supersedes checkyear.sh while preserving all of its functionality.
Added astyle functionality is disabled by default and should be enabled
manually.
Merge pull request #52 from alexmarsev/pre_commit

Add astyle function to the supplied pre-commit hook script
DSUtil: Add a helper class for CoInitialize.

This ensures that CoInitialized is always called if CoInitialize is successful.
VobSubFile: Fixed creation of a custom palette with Matroska

Fixes rendering of vobsubs in Matroska when the custom colors
feature was enabled.

Backport of MPC-BE commit 1995
Replace remaining NULL by nullptr when possible.
Use "PURE" instead of "= 0" for COM interfaces.
Resources: remove unused defines from resource.h
Update Authors.txt
IChapterInfo.h: Fix 966235 Uninitialized scalar field
Use "auto" as iterator type
VSFilter: remove unused defines from resource.h
Readme: more correct MediaInfoLib license
mplayerc: fix variable scope

Critical section object was being unlocked at ; instead of }
MainFrm: Gray-out disable aero composition on win8

Aero desktop composition is always enabled in Windows8 and management
function is not available

Fixes #3227
disable a couple more /analyze warnings for VS2012
Const correctness. Also pass the argument by reference when possible.
Completely remove RatDVD.

RatDVD was removed from the icon library and file associations in 2307da279e74b216681ef489f38b7e1bd22a04c2.
Remove unused variables.
Replace memset with ZeroMemory.

The ZeroMemory macro makes clear what it does compared to `memset(foo, 0, bar)`.
Get rid of duplicate defines.