Cleaned up code formatting.

Some simple changes from the previous commit were masked by dozens of whitespace changes.
Fixed minor issue with PowerCard.
Cleaned up some code to make Resharper happy.
Fixed some minor HTML issues.