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