Added support for HTTP PATCH uploads.

The iFrame transport now supports HTTP methods other than POST and GET,
but transfers DELETE, PUT and PATCH via _method parameter and uses POST
for the actual request.
Allow query parameters in the script URL. Closes #1999.