Fix package VERSION in user agent string
Add a base class for all API versions