Simple source cleanup.

1. Added WINE_TRACES to various functions.
2. Some syntax cleanups.
3. Cleaned up various checks and balances, logging statements, etc.