First working version for GET requests.

Totally untested and unstable.