Fix test that failed on Windows 2003.
Cleanup code styling and formatting mistakes.
Tighten the validation for file content integrity.
Fix problems with commenting and other small bugs.
Merge pull request #16 from cowofevil/acceptance/master/QA-994-acl_purge

LGTM.