Change APIHelper in dart to return HttpRequest object

Change so that the response code can be analysed in the daos