Add support for headers.

The headers will be passed directly to jQuery.ajax().