Implementation of [fetch API](https://fetch.spec.whatwg.org/). Modified version of https://github.com/github/fetch.