Bitbucket API helper. Signs GET and POST requests for API 1 and 2.