Updated ApiResponse, moved http_response_code handeling, added ApiResponseJSON unit test