Refactoring apiReader to remove duplication in the get and post http request methods

This fixes #66, duplication in the methods firing GET and POST requests. There was no tests in the class at all, now there are a bunch of tests covering every method except the constructors, that's fixing #67. Along the way I have refactored another minor things that had no issue assigned.