first step in moving the userapi to a module
First-pass refactoring to move most functionality into a module and get some rudimentary tests operating.
The first GET test works.
Let status function accept an error code parameter for its response (for testing the testing framework) and learn more about the test frameworks.
Checkpoint; nothing actually works right but I need to share it to get some help.
Rework as user/pw to remove my confusion, make things run synchronously.
Break out mongo into a separate module with its own tests; so far, has init, add and delete.
clean up api and tests
add some comments
I believe db_mongo is now in the kind of shape I want it in; now I can use it in the user API
Fix config values and their docs
midpoint changes before a refactoring for better error return model
Convert db_mongo to use the (err, result) model and convert the tests to use it.
Move to a constructor model rather than an init function.
License fixes, some work on api, but need to checkpoint this.
finally, after a variety of attempts, all tests pass.
Remove some dead code; fix logout; make POST /user log you in; fix tests to test all of this.
Transferring blueprint from apiary.io
Merge pull request #1 from tidepool-org/kjq/firstviable

I'm merging this because there's no reason not to -- all future work should start here.
Just tinkering with apiary so far.