Update whitespace & braces to WP Coding Standards

Just a bit of nit-picking related to WP coding standards. No
functionality has changed.
Fix some conflicts
Don't show transaction results if the viewer didn't make the transaction.
Merge pull request #405 from jbeales/issue-214

Don't show transaction results to anyone but the purchaser