Reformat code to Wordpress coding standard
Fix some small HTML validation errors
Convert HTTP requests from CURL to simpler PHP streams