Adds class responsible for making JSON requests

See the comments in the code. Made a separate branch just in case.