Add attribute to enable v2 API

It's disabled by default.
Merge pull request #196 from vuntz/v2-endpoint

Add attribute to enable v2 API