provide sample code for jQuery/zepto $.ajax wrapper
use a sorted set instead of a hash field for origins
return number of requests remaining at /credits (fixes #4)