Initial import of the original source
Support new version of jQuery ($.Deferred) and SImple PHP Proxy