Check http-prefixed content-* headers

The built-in web server in PHP 5.4 sets the Content-Length and Content-Type
headers in $_SERVER['HTTP_CONTENT_LENGTH'] and $_SERVER['HTTP_CONTENT_TYPE']
rather than $_SERVER['CONTENT_LENGTH'] and $_SERVER['CONTENT_TYPE'].
Add support for SOAP API

Pass through SOAPAction header, necessary when proxying requests to the
SOAP API.
Add support for cloudforce.com instances

Allow proxy to send requests to cloudforce.com instances in addition to
*.salesforce.com and *.database.com ones.
Support RemoteTK within a namespace

Use Visualforce.remoting.Manager.invokeAction and $RemoteAction global
variable so RemoteTK can be used within a managed package's namespace.
Improve compatiblity of RemoteTK with ForceTK

Changes to allow RemoteTK to be used as a drop-in replacement for ForceTK:
Add setSessionToken, setRefreshToken, and setUserAgentString noop functions.

Return referenceTo attribute with describe responses.

Return totalSize and done attributes with query responses.
Improve field-type support in create calls

Check the type of fields being populated in create calls and convert
values to the correct type.
Merge pull request #28 from jpearson-sfdc/master

Add support for custom domains from My Domains
Added JQuery deferred objects support. Updating to return promises
Merge pull request #19 from cwarden/soap-support

Add support for SOAP API in PHP Proxy
Merged cwarden's change for http-prefixed content-* headers
Merge pull request #23 from cwarden/cloudforce-support

Add support for cloudforce.com instances
Merge pull request #24 from cwarden/field-type-support

Improve field-type support in create calls
Merge pull request #25 from cwarden/remotetk-forcetk-compatibility

Improve compatiblity of RemoteTK with ForceTK
Merge pull request #26 from cwarden/managed-package-support

Support RemoteTK within a namespace
Merge pull request #29 from vrp-nikita-yaroshevich/master

Added JQuery deferred objects support.
Added upsert
Added tests for RemoteTKController.cls
fix arguments check in client.retrieve
Accept String or correctly typed arguments in create, update, upsert. Fixes #33
Merge branch 'master' of github-sfdc:developerforce/Force.com-JavaScript-REST-Toolkit