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
VMROSD: Allow the seekbar to be hidden and the video window to be changed after the OSD has started.

This is done in preperation of D3DFullscreen switching.
Allow the user to switch between D3DFullscreen and windowed mode during playback.

This allows D3DFullscreen to exit like regular fullscreen.
VMROSD: Update the OSD bitmap after setting a new video window.
MainFrm: Stop the hide cursor timer when exiting D3DFullscreen.
MainFrm: Call ToggleD3DFullscreen() from OnViewFullscreen() when it is enabled.
MainFrm: Correct some fullscreen checks to support D3DFullscreen.
MainFrm: Corrected checks that should only return true if D3DFullscreen is actually active.