Moved API version specifics into separate config. class.
Refactored to reduce some duplication (and organize by endpoint)