Added support for API V2

Added support for the beta API version 2, so it's possible to use the new API keys.