Added base API classes and missing Response class