A lightweight subset of jQuery.ajax