CRM-12977 fix file outputing for WordPress

----------------------------------------
* CRM-12977: Personal Campaign Pages on WordPress: uploaded images not being displayed
  http://issues.civicrm.org/jira/browse/CRM-12977
Merge pull request #22 from davecivicrm/4.3

CRM-12977 fix file outputing for WordPress
CRM-12978 add missing 2nd arguments in civicrm_check_permissions

----------------------------------------
* CRM-12978: Access denied for self-service recurring contribution URLs in WordPress
  http://issues.civicrm.org/jira/browse/CRM-12978
Merge pull request #23 from davecivicrm/CRM-12978

CRM-12978 add missing 2nd arguments in civicrm_check_permissions
Merge remote-tracking branch 'upstream/4.3' into 4.3-master-2013-07-14-22-25-54

Conflicts:
	civicrm.php
worked on shortcode for petitions(CRM-12818)
worked on shortcodes
CRM-12818
Merge pull request #25 from yashodha/shortcode

worked on shortcode for petitions(CRM-12818)
Remove unused functions, rename 'instance' to 'singleton'