This patch adds:
- a function to wrap the WP calls to get a URL based source and sets a 30sec timeout.
- More detailed status information in the plugin's WP Dashboard pane on why an autoupdate failed.
- Logging information, and a logging function, which outputs debug information when WP_DEBUG is true to help troubleshoot.