Allow for XHR reuse

Fixes #29 and #25. Not the cleanest solution ever (AFAIK there's no way to define a variable in CoffeeScript without initialising it, but I don't really know much CS at all so I could be wrong.), but it works. Example test case supplied..