Initial layout and BaseAPI class
Corrections in string formatting
Code for API v2. Removed API v1.