upgrade to API v2
Merge pull request #7 from bitme/version2

upgrade to API v2