Deleted an unused DB schema model.
Restructured the DB schema to take advantage of Sequelize's 'associations' and the resulting magical methods. Now need to rewrite APIs to take advantage of these new magical methods.
New /campaigns/ endpoint accepts User object. Checks username against existing users before creating campaign and then assigning that user as the owner.
Refactored the /register endpoint to take advantage of new magical functions (created by .hasMany association).
Deleted registrations.js
Commented for future miguel to improve code with.
Added .get /register. Maybe should have this on /campaign though. To get query parameters from a request, use req.query.
 Moved routes into its own file and added some tools that will be useful when using passport.js.
A bunch of passpot-related stuff was deleted. Not sure why.
Setting up my passport config file.
Added instanceMethods to User model to encrypt and check password.
Did some messy work to figure out how user authentication and persistent sessions using passport work. I think I'm ready to finish my passport.js config file; it needs to find the users in the DB.
Getting authentication to fail correctly on /login.
Authentication succeeds successfully. Not sure whether I'm getting the user token expected tho.
Added some libraries to handle JSON WebTokens, and reorganized server.js so that all Middleware is in one place.
Modified local-login strategy to wrk with Sequelize.
Trying to debug what I did wrong with this server. It's not processing any requests.