DoSomething/ds-mdata-responder — pull request #287 by jonuy (2014-11-07 13:28:23+00:00)
Title: Moving pregtext code into own library

#### What's this PR do?
Incremental refactoring that'll eventually work towards other changes. Pregnancy Text code has been moved into its own library. This more effectively decouples pregtext from the rest of the code. All relevant files can now be found in `app/lib/pregnancytext`. And if we wanted to remove all pregtext functionality, we just need to remove the following line from router.js: `require('./lib/pregnancytext')(app);`

#### Where should the reviewer start?
Other than files just moving around, the only code really changing is moving the pregtext router lines into `app/lib/pregnancytext/index.js`.

#### How should this be manually tested?
The campaign's done, so wasn't too concerned about fully testing. But I did at least verify this sent the correct optin call:
- POST http://localhost:4711/pregnancy-text/send-babysitter-invite-alpha
with params:
- phone: 5555550100
- args: 5555550101

#### Any background context?
Apologies for branching off a feature branch, but review and merge #286 first. It'll make the diffs here easier to pick out.