Update all files to meet WP Coding Standards

The PHP in particular was a little all over the place, so I standardized it according to the WordPress Coding Standards.

http://make.wordpress.org/core/handbook/coding-standards/