Added some node_modules needed for JWT tokens.
Successfully created User password setter that hashes the pass.
Username now just references some other user field. Woo\!
Awesome*** Successfully passing back use tokens.
Refactoring code that generates token.
Added 401 header to responses telling of non-users and bad passwords.
WOOGHOO***  Can use a token issued by server to reach protected endpoints***
Moved requireAuth() to bottom of page.
Checkpoint.
Set token in JSON response rather than send it from the middleware.
Created checkTokenThenFindOrCreateUser to handle the three-pronged approach to user auth/creation.
Successfully rewrote POST /register using the new checkTokenThenFindOrCreateUser method**.
Updated return data on POST /register.
Verified that the findOrCreate branch of checkTokenThenFindOrCreateUser works. Updated POST /register to include the token in case one is created.
GET register now requires authentication. May need to alter it so it only takes one campaign_id.
Renamed the checkToken, 3-pronged user checker file.
Superficially updated /campaigns POST and PUT. Haven't tested.
Superficially updated /campaigns DELETE and GET to include authentication and to specify which campaign to include.
Updated the /users GET, POST, PUT and DELETE.
Removed GET /users because it seemed too powerful.