20150803 Cosmetic/readability/manageability changes
20150803 Cosmetic/readability/manageability changes

- Changes to comment formatting.
- Changes to general formatting.
- Changes to variable names so it is more clear where they belong.
- Rearranged items so items are grouped better together.
- Rearranged items so less resources are used (either moved static
variables out of the loop or moved 'volatile' variables so that they are
only set if they are actually needed).
- Splatting on the Write-EventLog cmdlets.

draggeta/sysadmin-scripts