DoSomething/ds-mdata-responder — pull request #203 by tongxiang (2014-10-08 18:12:17+00:00)
Title: incorporate Bitly link shortening in donation transaction

#### What's this PR do?
This PR adds a new service in the `app/lib` directory: `bitly`, which exports a **.shortenLink()** function that calls the Bitly API in order to shorten the long DonorsChoose URL returned with the success callback.

Once the shortened URL is retrieved, we ping the MobileCommons API to add this shortened URL to the MC user profile. The final "your donation has been successful" text to the user thus contains the shortened URL, which then displays the proposal web page including the user's first name and transaction.

#### Where should the reviewer start?
Check out the `bitly.js` file to start off with, to understand how the simple API call function works. Then check out how we've integrated it in the `DonorsChooseDonationController.js`, where we've included it in the **.submitDonation()** function.

#### How should this be manually tested?
Run this locally, and use Postman to walk through the donations flow. If all goes well, the last text you should receive should contain updates on the project from a shortened "http://dsorg.us" URL.

#### What are the relevant tickets?
JIRA SMS-84 (goodbye JIRA!!!)