Extend the api of requests.js to allow the use of router objects