Moved api_key and co. out of api module, into main module.
Use the type metaclass and __new__ instead of init so factory methods are not included in new response objects.
Add requests.py, move endpoint_for into it.